運行錯誤,,
#include <stdio.h>
int main()
{
? ? int age,height;
? ? float whttp;
? ? char isfat;
? ? ? age = 15;
? ? ? height = 162;
? ? ? whttp: = 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; ? ?
}
2019-05-07
這個變量你沒有定義吧。體重,那邊你寫的是weight。你定義的是whttp。打錯了吧