New course! Every coder should learn Generative AI!
Try a free lesson+ 1
What are some alternatives to cin?
Cin only detects one word, and that's bad. What are some alternatives?
1 Answer
+ 5
std::string str;
std::getline(std::cin, str);
Cin only detects one word, and that's bad. What are some alternatives?