Hello! I was wondering how I would be able to create a menu to select Characters instead of numbers.
Currently this is what i have:
Code:
int menu(){
int choice;
cls;
printf("\n\n==============================\n");
printf(" MY FIRST ARRAY ASSIGNMENT ");
printf("\n==============================\n");
printf("L - oad the Array\n");
printf("M - inimum value from the Array\n");
printf("H - ighest value from the Array\n");
printf("A - verage of all values in the Array\n");
printf("O - utput the values in the Array\n");
printf("Q - uit\n");
printf("==============================\n");
printf("\t Enter Menu Choices: ");
scanf("%i", &choice);
switch(choice){
case 1:
loadArray(grades);
break;
case 2:
break;
case 3:
break;
case 4:
break;
case 5:
break;
case 6:
break;
default:
printf("You must enter a L,M,H,A,O,Q only!\n");
pause;
break;
} // End of switch
} // End of Function
I want each case to select from: L M H A O Q, instead of 1-6
thank you!