各位大佬們幫我看一下哪兒有問題啊?謝謝了,在線等
#include <stdio.h>
int main()
{
??? int sale=120; //銷售業(yè)績?yōu)?20萬
??? int year=1; //剛剛進(jìn)入公司1年
??? //完善代碼
??? if(sale>100)
??? {
??????? if(year>=2)
??????? {
??????????? printf("%s\n","you'xiu'yuan'gong);
??????? }
printf("%s\n","很遺憾,期望你再接再厲");
??? }
??? else
??? {
????????? printf("%s\n","很遺憾,期望你再接再厲");
??? }
???
???
???
???
??? return 0;
}
下面是運(yùn)行結(jié)果------------------------------------------------------------------------------
hello.c: In function 'main':
hello.c:11:27: warning: missing terminating " character [enabled by default]
???????????? printf("%s\n","you'xiu'yuan'gong);
?????????????????????????? ^
hello.c:11:13: error: missing terminating " character
???????????? printf("%s\n","you'xiu'yuan'gong);
???????????? ^
hello.c:12:9: error: expected expression before '}' token
???????? }
???????? ^
hello.c:12:9: error: expected ';' before '}' token
hello.c:13:1: error: stray '\343' in program
printf("%s\n","很遺憾,期望你再接再厲");
?^
hello.c:13:1: error: stray '\200' in program
hello.c:13:1: error: stray '\200' in program
hello.c:13:1: error: stray '\343' in program
hello.c:13:1: error: stray '\200' in program
hello.c:13:1: error: stray '\200' in program
hello.c:13:1: error: stray '\343' in program
hello.c:13:1: error: stray '\200' in program
hello.c:13:1: error: stray '\200' in program
hello.c:13:1: error: stray '\343' in program
hello.c:13:1: error: stray '\200' in program
hello.c:13:1: error: stray '\200' in program
2017-08-14
應(yīng)該是打中文的時(shí)候輸入法沒有切換回英文的模式。