You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
986 B

#include <stdio.h>
void inputInfo() {
printf("You are trying to Input info.\n");
}
void outputInfo() {
printf("You are trying to Output info.\n");
}
void makeOrdered() {
printf("You are trying to Make things ordered.\n");
}
//²Ëµ¥
int main() {
char choice;
printf("Main Menu:\n");
printf("%30s 1.Input\n", "");
printf("%30s 2.Output\n", "");
printf("%30s 3.Order\n", "");
printf("%30s 4.Quit\n", "");
printf("Please enter your choice: ");
scanf(" %c", &choice);
//Ñ¡Ôñ
switch (choice) {
case 'i':
inputInfo();
break;
case 'o':
outputInfo();
break;
case 'm':
makeOrdered();
break;
case 'q':
printf("You are about to Quit.\n");
break;
default:
printf("Wrong input.\n");
break;
}
return 0;
}