ok i want to know if there is a way in a program to do what some games do and say like hit space (or another key) fast and if you dont hit it fast enough then something happens. if there isnt thats fine. it would just be usefull in my program. :)
Reading keypresses and such is platform-specific, so I would recommend looking into SFML for this, if only because it can help you expand into more complex things later and is multi-platform. http://www.sfml-dev.org/
In this case, you could probably simply start a timer, wait for the space bar, and when you get it, see how long it took an act accordingly.