Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <iostream>
- using namespace std;
- int main()
- {
- char key = ' ';
- cout << "Enter a key" << endl;
- key = _getch();
- cout << "You entered: " << key << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement