printf with std::string?
My understanding is that string is a member of the std namespace, so why does the following occur? #include <iostream> int main() { using namespace std; string myString = “Press ENTER to quit program!”; cout << “Come up and C++ me some time.” << endl; printf(“Follow this command: %s”, myString); cin.get(); return 0; } Each … Read more