hello.c:?In?function?'main':
hello.c:11:68:?error:?stray?'\357'?in?program
??????????????????printf("%s\n","恭喜您獲得優(yōu)秀員工獎!");
????????????????????????????????????????????????????????????????????^
hello.c:11:69:?error:?stray?'\274'?in?program
??????????????????printf("%s\n","恭喜您獲得優(yōu)秀員工獎!");
?????????????????????????????????????????????????????????????????????^
hello.c:11:70:?error:?stray?'\233'?in?program
??????????????????printf("%s\n","恭喜您獲得優(yōu)秀員工獎!");
??????????????????????????????????????????????????????????????????????^
hello.c:13:9:?error:?expected?';'?before?'}'?token
?????????}
?????????^
hello.c:16:31:?warning:?missing?terminating?"?character
?????????????????printf("%s\n","很遺憾,期望你再接再厲);
???????????????????????????????^
hello.c:16:31:?error:?missing?terminating?"?character
?????????????????printf("%s\n","很遺憾,期望你再接再厲);
???????????????????????????????^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hello.c:17:9:?error:?expected?expression?before?'}'?token
?????????}
?????????^
hello.c:17:9:?error:?expected?';'?before?'}'?token
2019-03-18
#include <stdio.h>
int main()
{
??? int sale=120; //銷售業(yè)績?yōu)?20萬
??? int year=1; //剛剛進入公司1年
??? //完善代碼
??? if(sale>100)
??? {
???????
??????? if(year>=2){
???????????
??????????? printf("優(yōu)秀員工");
??????? }else{
???????????
??????????? printf("很遺憾,期望你再接再厲 ");
??????? }
??? }else
??? {
?????? printf("很遺憾,期望你再接再厲 ");
??? }
???
2019-03-15
#include <stdio.h>
int main()?
{
? ? int sale=120; //銷售業(yè)績?yōu)?20萬
? ? int year=1; //剛剛進入公司1年
? ? //完善代碼
? ? if(sale > 100)
? ? {
? ? ? ? if(year >= 2)
? ? ? ? {
? ? ? ? ? ? printf("恭喜,獲獎!!!!!\n");
? ? ? ? }
? ? ? ? else
? ? ? ? {
? ? ? ? ? ? printf("很遺憾,期望你再接再厲1\n");
? ? ? ? }
? ? }
? ? else
? ? {
? ? ? ? printf("很遺憾,期望你再接再厲2\n");
? ? }
? ??
? ??
? ??
? ? return 0;
}
2019-03-12
要輸入英文符號 ; 而不是中文符號;。應該是員工獎后面的弄錯了。
{}花括號內(nèi)的語句要用;結(jié)尾。
很遺憾那句話的“”這個符號漏了一邊的。
我大概是看到的就這些。