#include <iostream> #include <conio.h> using namespace std; int main() { char key = ' '; while (key != 'q'){ cout << "Enter a key: "; key = _getch(); cout << "You entered: " << key << endl; } return 0; }
hghskjgh s d sd f s 234q
prog.cpp:2:19: fatal error: conio.h: No such file or directory compilation terminated.
Standard output is empty