char activity[30];
int choice;
scanf("%d", &choice);
if(choice==1){
activity = "Sedentary";
}
else if(choice==2){
activity = "Light Activity";
}
else if(choice==3){
activity = "Moderate Activity";
}
else if(choice==4){
activity = "Very Active";
}
else if(choice==5){
activity = "Extra Active";
}
当我编译时,它显示 lvalue required 错误。不知道是什么意思,谁能帮帮我。对不起我的英语。
已编辑 - 标题 TurboC(错字)