I hav created a menu in DOS window.
IT looks like this
MAIN MENU
1.GAME
2.HIGHEST SCORES
3.EXIT
the code
what should i do to make sure the options are executed without the user pressing enter?Code:main() { int option,result; cout<<"MAIN MENU"; cout<<"\n1.Game"; cout<<"\n2.HIGHEST SCORES"; cout<<"\n3.EXIT"; cin>>option; cin.get(); if(option==1) { result=system("game.exe"); cout<<result; } if(option==2) { result=system("highest.exe"); cout<<result; } if(option==3) { return 0; }
thanks in advance..