#include <stdio.h> int main (){
//向顾客致欢迎词
printf("欢迎您来到本店,本店厨师推出新菜品\n请点菜:输入菜品序号,谢谢\n"); for(;;){ int no =-1;
scanf("%d",&no);
switch (no){
default:printf("本店厨师还在写代码\n"); case (1):printf("宫爆鸡丁\n");break; case (2):printf("虎皮青椒\n");break; case 3:printf("番茄炒蛋\n");break; case 4:printf("青瓜炒丑蛋\n");break; case 5:printf("酱骨架\n");break; case 6:printf("爆炒鱿鱼\n");break; } }
return 0; }
|