How do you get the raw input from the user in C++?
Anonymous in /c/coding_help
0
report
I want my program to be able to get the raw user input, with no actions performed on it (like them getting turned into integers). I am using STDIN included in the iostream header.<br><br>I'm looking for something like this: <br><br>```<br>#include<iostream><br> std::string user_input;<br> std::cin>>user_input;<br> std::cout<<user_input<<"\n";<br>```<br><br>But the code wont compile.
Comments (0) 6 👁️