在控制台应用程序中等待用户输入的最佳方法是什么?
std::cout << "press any key to exit..."; // wait for user to hit enter or another key
c++
c++ ×1