HOW do i press any key to continue??????

Started by
21 comments, last by graveyard filla 20 years, 3 months ago
#include <iostream>#include <conio.h>int main(){std::cout<<"Press O for options, hit enter to continue...\n"; switch(getch()  {     case ''O'':     case ''o'':     //OPTIONS MENU     break;     case ''\n'':     //CONTINUE     break;  }return 0;}
When General Patton died after World War 2 he went to the gates of Heaven to talk to St. Peter. The first thing he asked is if there were any Marines in heaven. St. Peter told him no, Marines are too rowdy for heaven. He then asked why Patton wanted to know. Patton told him he was sick of the Marines overshadowing the Army because they did more with less and were all hard-core sons of bitches. St. Peter reassured him there were no Marines so Patton went into Heaven. As he was checking out his new home he rounded a corner and saw someone in Marine Dress Blues. He ran back to St. Peter and yelled "You lied to me! There are Marines in heaven!" St. Peter said "Who him? That's just God. He wishes he were a Marine."
Advertisement
quote:Original post by Ademan555
... switch(getch()...


umm switch(getch())

[Mercury Software] [Google!] [ Look I DONT Follow Trends ]
sri...typo, he should know how to close a parenthesis tho...hell be fine
When General Patton died after World War 2 he went to the gates of Heaven to talk to St. Peter. The first thing he asked is if there were any Marines in heaven. St. Peter told him no, Marines are too rowdy for heaven. He then asked why Patton wanted to know. Patton told him he was sick of the Marines overshadowing the Army because they did more with less and were all hard-core sons of bitches. St. Peter reassured him there were no Marines so Patton went into Heaven. As he was checking out his new home he rounded a corner and saw someone in Marine Dress Blues. He ran back to St. Peter and yelled "You lied to me! There are Marines in heaven!" St. Peter said "Who him? That's just God. He wishes he were a Marine."

This topic is closed to new replies.

Advertisement