get char in console prob
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
how do i get a single ASCII character from the user, useing a console window, without having to use the return key. i want the user to use the arrow keys (and some others) to move pices of info around on the screen. how would i go about doing this and what headers will i need.
-
how do i get a single ASCII character from the user, useing a console window, without having to use the return key. i want the user to use the arrow keys (and some others) to move pices of info around on the screen. how would i go about doing this and what headers will i need.
To read one single ASCII character from the console stdin you can use int getchar(void); :-D -Dominik