parent
aa4e3777ed
commit
02a6adcdcd
@ -0,0 +1,54 @@
|
|||||||
|
#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;
|
||||||
|
}
|
Loading…
Reference in new issue