代碼我覺得沒有錯為什么會顯示錯誤呢?
#include <stdio.h>
int main(){
??? int age = 18;
?float height = 1.85;
?char unit = 'm';
?printf("小明今年:%d歲\n", age);
?printf("小明身高:%f\n小明性別是:%c\n", height, unit);
?printf("小明現(xiàn)在在慕課網(wǎng)上學習IT技術");
?return 0;
}
#include <stdio.h>
int main(){
??? int age = 18;
?float height = 1.85;
?char unit = 'm';
?printf("小明今年:%d歲\n", age);
?printf("小明身高:%f\n小明性別是:%c\n", height, unit);
?printf("小明現(xiàn)在在慕課網(wǎng)上學習IT技術");
?return 0;
}
2019-07-06
舉報
2019-08-03
#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)上學習IT技術%s");?
return 0;
}
2019-07-20
printf("小明身高:%f\n小明性別是:%c\n", height, unit);
改為:printf("小明身高:%f%c\n", height, unit);
2019-07-13
1.85后面還有四個零
2019-07-08
#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("%s","小明現(xiàn)在在慕課網(wǎng)上學習IT技術");
??? return 0;
}
我的也是錯的
2019-07-08
? 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)上學習IT技術");?
?return 0;
}
2019-07-08
我一小白進來干什么。。。
2019-07-06
第七行應該是
printf("小明身高%f%c/n"),height,unit);
2019-07-06
第二句輸出去掉第一個\n試試