About keyboard being pressed

Umm. I don't really know how to explain this, but what is the function that enables a condition to be fulfilled if one of the keyboard buttons is pressed?

Example:
1
2
if ("any keyboard button is pressed")  //Problem is I don't which syntax to put
goto abc;
Last edited on
@indojo

Look here for a small program I showed someone on using the arrow keys to move a character on screen. It will probably be of help to you.

http://v2.cplusplus.com/forum/beginner/59023/
Topic archived. No new replies allowed.