為什么輸出結(jié)果上面有一堆亂碼/249/5198/E9wv/hello.c: In function 'main': /249/5198/E9wv/hello.c:7:15: error: expected ';' before string constant printf"恭喜小明可以參加?;@球隊(duì)"; ^
#include?<stdio.h> int?main()? {??????? ????int?height?=?185; ????if(height>=180)//補(bǔ)全所有代碼 ????{ ????????printf"恭喜小明可以參加?;@球隊(duì)"; ????} ???? ???? ???? return?0; }
2016-05-27
少了括號(hào),printf("恭喜小明可以參加校籃球隊(duì)");