顯示錯(cuò)誤,這個(gè)該怎么辦?
#include <stdio.h>
int main(){
? ? int age = 18;
float height = 1.85;
char unit = 'm';
printf("小明今年%d歲\n", age);
printf("小明身高%f,%c\n", height, unit);
printf("小明現(xiàn)在在慕課網(wǎng)上學(xué)習(xí)IT技術(shù)");?
return 0;
}
#include <stdio.h>
int main(){
? ? int age = 18;
float height = 1.85;
char unit = 'm';
printf("小明今年%d歲\n", age);
printf("小明身高%f,%c\n", height, unit);
printf("小明現(xiàn)在在慕課網(wǎng)上學(xué)習(xí)IT技術(shù)");?
return 0;
}
2019-08-13
舉報(bào)
2019-08-13
第七行的%f和%c之間不用逗號(hào)。第八行“小明現(xiàn)在在慕課網(wǎng)上學(xué)習(xí)IT技術(shù)”前面加上“%s”,? ? ?注意這個(gè)逗號(hào)