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.

24 lines
848 B

步骤1
int main()
{
char controll;
char arr1[] = { " 1.Input" };
char arr2[] = { " 2.Output" };
char arr3[] = { " 3.Order" };
char arr4[] = { " 4.Quit" };
char arr5[] = { "You are trying to Input info" };
char arr6[] = { "You are trying to Output info" };
char arr7[] = { "You are trying to Make things ordered" };
char arr8[] = { "You are about to Quit" };
printf("%s\n%s\n%s\n%s\n", arr1, arr2, arr3, arr4);
scanf_s("%c", &controll);
switch (controll) {
case 'i':printf("\n%s\n", arr5); break;
case 'o':printf("\n%s\n", arr6); break;
case 'm':printf("\n%s\n", arr7); break;
case 'q':printf("\n%s\n", arr8); break;
default:printf("Wrong input");
}
}