Mar 28, 2014 at 5:42am
printf() cannot output std::strings. It's a function inherited from C, and C has no knowledge of C++ data types.
Mar 28, 2014 at 1:36pm
Thank you very much. I changed the printf statement to:
cout << "Hello, " << name << "\n";
It works.