you mean like this?
char choice;
printf("enter choice: ");
scanf("%c", &choice);
if(choice==1)
do this;
if(choice==2)
Type: Posts; User: xhoangx
you mean like this?
char choice;
printf("enter choice: ");
scanf("%c", &choice);
if(choice==1)
do this;
if(choice==2)
printf("enter choice: ");
scanf("%d", &choice);
if(choice==1)
do this;
if(choice==2)
do that;
if(choice==(Enter key))
do something;
got it, thanks alot for your help!
i'm coding a game program for my c class and i need some help.
okay, at the beginning of the game it reads the high scores from a .txt file and prints it to the screen. the standard file is...