Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<windows.h>
- #include<iostream>
- #include<conio.h>
- #include<vector>
- using namespace std;
- int main()
- {
- vector<int> v;//getchからの戻り値確認用
- while (1) {
- v.push_back(_getch());
- //出力
- for (int i = 0; i < v.size(); i++) {
- cout << v[i]<<endl;
- }
- Sleep(100);
- }
- }
Add Comment
Please, Sign In to add comment