回复 2楼 九转星河
#include<stdio.h>int a,b,c;
int main(){
printf("请输入天气(1晴,2雨)/心情(1好,2坏)/星期:");
scanf("%d%d%d",&a,&b,&c);
switch(a,b,c){
case 111:printf("蛏子");break;
case 112:printf("牛肉");break;
case 113:printf("羊肉");break;
case 114:printf("鸡肉");break;
case 115:printf("鸭肉");break;
case 116:printf("猪肉");break;
case 117:printf("鱼肉");break;
case 121:printf("蛏子");break;
case 122:printf("牛肉");break;
case 123:printf("羊肉");break;
case 124:printf("鸡肉");break;
case 125:printf("鸭肉");break;
case 126:printf("猪肉");break;
case 127:printf("鱼肉");break;
case 211:printf("蛏子");break;
case 212:printf("牛肉");break;
case 213:printf("羊肉");break;
case 214:printf("鸡肉");break;
case 215:printf("鸭肉");break;
case 216:printf("猪肉");break;
case 217:printf("鱼肉");break;
case 221:printf("蛏子");break;
case 222:printf("牛肉");break;
case 223:printf("羊肉");break;
case 224:printf("鸡肉");break;
case 225:printf("鸭肉");break;
case 226:printf("猪肉");break;
case 227:printf("鱼肉");break;
}
return 0;
}