How can I convert this C code into (new)C++
I am trying to print a structure.
printf("Phone: %s\n\n", thisName->phoneNumber);
This is a discussion on convert printf / structure within the C++ Programming forums, part of the General Programming Boards category; 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