Okay I want to make a program similar to Pong (c) and I don't know what you could put for like the equivalent to if u hit the up arrow / down arrow... the only thing i know that has to do with hitting keyboard buttons is "kbhit()", which if anything is hit, but what would be for up/down arrow hit?
2006-11-18
12:46:18
·
3 answers
·
asked by
YahooAnswers
2
in
Computers & Internet
➔ Programming & Design
I had thought of that, but a cin would accept up and down.
2006-11-18
13:18:10 ·
update #1
Oh wait, how would you do that .. (say up = int for up arrow and down = down arrow)
a cout then
if(kbhit())
......?
2006-11-18
13:24:20 ·
update #2