課程
/后端開發
/C
/C語言入門
怎么錯了,看不出來
2017-10-21
源自:C語言入門 4-1
正在回答
建議你把代碼放到本地編譯器上測試,就能提示哪一行出現問題
有可能是標點符號錯
#include<stdio.h>
int main()
{int height=185;
if(height>=180)
{printf("%s\n","恭喜小明進入籃球隊");
}
return 0;
望采納
舉報
C語言入門視頻教程,帶你進入編程世界的必修課-C語言
3 回答#include <stdio.h> int main() { int height = 185; //補全所有代碼 if(height>=180) { printf(恭喜小明可以參加?;@球隊); } return 0; }
3 回答#include <stdio.h> int main() { int height = 185; if(height>=180); printf(" 恭喜小明可以參加校籃球隊 "); return 0; }
3 回答#include <stdio.h> int main() { int height = 185; //補全所有代碼 if(height>=180) { printf("%s\n","恭喜小明可以參加?;@球隊"); } return 0; }
2 回答這哪有錯呢#include <stdio.h> int main() { int height = 185; //補全所有代碼 if(height >=180 ) { printf("%s\n","恭喜小明可以參加?;@球隊"); return 0; } }
2 回答#include <stdio.h> int main() { int height = 185; if (height >= 180) { printf("恭喜小明可以參加?;@球隊!"); } return 0; }為什么這樣也能運行成功?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2017-10-21
建議你把代碼放到本地編譯器上測試,就能提示哪一行出現問題
2017-10-21
有可能是標點符號錯
2017-10-21
#include<stdio.h>
int main()
{
int height=185;
if(height>=180)
{
printf("%s\n","恭喜小明進入籃球隊");
}
return 0;
}
望采納