PhillipKP / congenial-spoon

A guess the number game written in C++17, with Xcode 12 for Mac OS Catalina and MS Visual Studio 2019 for Windows 10.
0 stars 0 forks source link

When the user inputs something with spaces the program accept it as multiple inputs #4

Closed PhillipKP closed 4 years ago

PhillipKP commented 4 years ago

For example: 34 64 is received as two guesses.

PhillipKP commented 4 years ago

Fixed by replacing std::cin with std::getline(). See commit: 12ea60d0fed2d103411d638c0c5c2667ac6b5394