As the title said, I\'m curious if there is a way to read a C++ string with scanf.
I know that I can read each char and insert it in the deserved string, but I\'d wa
The below snippet works
string s(100, '\0'); scanf("%s", s.c_str());