hey guys, im having a hard time making this switch function catch letters and return the error message.
int main()
{
int choice;
do
{
/* THE DISPLAY MENU*/
printf("================================================\n\n");
printf("Welcome to Walther's Tic Tac Toe Game.\n\n");
printf("what would you like to do?\n\n");
printf("1 Play Tic Tac Toe\n\n");
printf("2 Quit\n\n");
printf("Please make your selection now: ");
scanf("%i", choice);
printf("\n\n================================================\n");
switch (choice)
{
case 1:
void ClearGameBoard(char board[]);
break;
case 2:
break;
default:
printf("Your choice is invalid, please try again.\n");
break;
}
}while(choice != 2);
printf("Thank you for using James' converter. Bye!\n\n\n");
system("PAUSE");
return 0;
}
thanks as always ^.^