那一句出问题了?????
#include <stdio.h>
int main()
{
int age = 15;
int height = 162;
chare weight = 82.5;
int 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;
}
输出为
/249/5113/HWVl/hello.c: In function 'main':
/249/5113/HWVl/hello.c:6:5: error: unknown type name 'chare'
chare weight = 82.5;
^
那里有错误?