#include <iostream>
using namespace std;
int main() {
cout << "Enter a number:";
int num;
cin >> num;
cin.get();//在输入后并按enter键时读取输入;
cin.get();//让程序暂停,直到按enter键
cout << "You had enter " << num << " right?" << endl;
system("pause");
return 0;
}
C++实现让程序暂停
最新推荐文章于 2024-07-08 17:00:07 发布