I know I just posted a newby post but I have another one. I have bought c++ books and searched the web but still can't figure out how to make the code read when a key is pressed to the activate the code in the statement. I know in c# its
@LB I'm not using GUI as I'm just trying to make a simple console game to further my experience and knowledge in c++. nothing huge just something to do.
I disagree. The only difference in a console game is the display medium and handling input in the event loop properly -- which is actually a bit more difficult in a console app than a GUI one.
That said, I agree that it is worth your time to play around with SDL or SFML instead and go straight to a GUI game. They're tons easier and much more fun.