16.getch

#include <bits/stdc++.h>
#include <conio.h>
using namespace std;
int main(){
    int c;
    /*
        getch() 可以在螢幕不顯示的情況下輸入
    */
    for(int i = 0; i < 5; i++){
        c = getch();
        cout << c << endl;
    }
    return 0;
}

results matching ""

    No results matching ""