How can I convert this C code into (new)C++
I am trying to print a structure.
printf("Phone: %s\n\n", thisName->phoneNumber);
How can I convert this C code into (new)C++
I am trying to print a structure.
printf("Phone: %s\n\n", thisName->phoneNumber);
Simple. Do this:Originally posted by Max
How can I convert this C code into (new)C++
I am trying to print a structure.
printf("Phone: %s\n\n", thisName->phoneNumber);
Code:cout << "Phone: " << thisName->phoneNumber << endl << endl;
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers