|
|
std::cin.ignore();std::cin.get() also fails to pause the console if there are unused characters in the buffer.std::cin.ignore(); and std::cin.get(); should both work about the same.std::cin.sync(); before your ignore/get call.std::cin >> something; in your code, stick astd::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');std::cin.ignore(); at the end of your program should work as expected.