哪里不對啊
#include <stdio.h>
int main()
{
? ? ? ?int age = 15;
? ? ? ?int height = 162;
? ? ? ?float weight = 82.5;
? ? ? ? isfat = 'y';
? ? printf("年齡:%d 歲\n", age);
? ? printf("身高:%d CM\n", height);
? ? printf("體重:%f KG\n", weight);
? ? printf("是否屬于肥胖兒童:%c\n", isfat);?
? ? /*%d,%f,%c此類符號在后面會有講解*/
? ? return 0;? ??
}
2018-12-11
第七行:?isfat = 'y';沒有定義,y表示字符型,所以要在前面添加char isfat = 'y';
2018-12-10
char isfat = 'y';
2018-11-18
?char isfat = 'y';
2018-11-18
是char?isfat = 'y';
2018-11-17
char isfat='A';
2018-11-11
char isfat ='y'
2018-11-03
isfat?沒有定義