Guest User

Untitled

a guest
Sep 23rd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include<windows.h>
  2. #include<iostream>
  3. #include<conio.h>
  4. #include<vector>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. vector<int> v;//getchからの戻り値確認用
  10. while (1) {
  11. v.push_back(_getch());
  12. //出力
  13. for (int i = 0; i < v.size(); i++) {
  14. cout << v[i]<<endl;
  15. }
  16. Sleep(100);
  17. }
  18. }
Add Comment
Please, Sign In to add comment