/* name: try.cxx author: Leo Liberti source: GCC 4.1.2 purpose: to test a bit of code from the course history: 100112 v.0.0 work started */ #include int main(int argc, char** argv) { char buffer[] = "01011010 01100100"; char* bufPtr = buffer; while(*bufPtr != '\0') { if (*bufPtr == '0') { *bufPtr = 'F'; } else { *bufPtr = 'T'; } bufPtr++; } std::cout << buffer << std::endl; return 10; }