C
Chris
Running into a problem on Windows. This code
std::string randomStuff;
std::getline(std::cin, randomStuff);
works on unix, but on windows, it requires the user to hit the enter
key *twice* before it continues past the getline. I tried changing the
getline to
std::getline(std::cin, randomStuff, '\n');
but that didn't help. Any ideas?
std::string randomStuff;
std::getline(std::cin, randomStuff);
works on unix, but on windows, it requires the user to hit the enter
key *twice* before it continues past the getline. I tried changing the
getline to
std::getline(std::cin, randomStuff, '\n');
but that didn't help. Any ideas?