Add pause.cpp

This commit is contained in:
2022-04-21 01:51:37 +08:00
parent b589e17486
commit 12c8284767
7 changed files with 70 additions and 1 deletions

View File

@@ -6,4 +6,4 @@
请分别根据注释运行
## 协议
详见文件内部注释
如无注释, 根据 GPL 3.0 协议开源
如无注释, 根据 GPL 3.0 协议开源

12
onefile/pause.cpp Normal file
View File

@@ -0,0 +1,12 @@
// pause.cpp
// LICENSE: Nothing(do what ever you want!)
#include <bits/stdc++.h>
using namespace std;
int main(){
cout << "Press any key to continue...";
cin.clear();
cin.sync();
cin.get();
return 0;
}