How can I convert this C code into (new)C++
I am trying to print a structure.
printf("Phone: %s\n\n", thisName->phoneNumber);
Printable View
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:Quote:
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;