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";
}
コンパイルすると、左辺値が必要なエラーが表示されます。意味がわかりません、誰か助けてください。私の英語でごめんなさい。
編集済み - タイトル TurboC (タイプミス)