亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

有人可以幫我看看嘛?

hello.c:?In?function?'main':
hello.c:11:68:?error:?stray?'\357'?in?program
??????????????????printf("%s\n","恭喜您獲得優秀員工獎!");
????????????????????????????????????????????????????????????????????^
hello.c:11:69:?error:?stray?'\274'?in?program
??????????????????printf("%s\n","恭喜您獲得優秀員工獎!");
?????????????????????????????????????????????????????????????????????^
hello.c:11:70:?error:?stray?'\233'?in?program
??????????????????printf("%s\n","恭喜您獲得優秀員工獎!");
??????????????????????????????????????????????????????????????????????^
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


正在回答

3 回答

#include <stdio.h>
int main()
{
??? int sale=120; //銷售業績為120萬
??? int year=1; //剛剛進入公司1年
??? //完善代碼
??? if(sale>100)
??? {
???????
??????? if(year>=2){
???????????
??????????? printf("優秀員工");
??????? }else{
???????????
??????????? printf("很遺憾,期望你再接再厲 ");
??????? }
??? }else
??? {
?????? printf("很遺憾,期望你再接再厲 ");
??? }
???

0 回復 有任何疑惑可以回復我~

#include <stdio.h>

int main()?

{

? ? int sale=120; //銷售業績為120萬

? ? int year=1; //剛剛進入公司1年

? ? //完善代碼

? ? if(sale > 100)

? ? {

? ? ? ? if(year >= 2)

? ? ? ? {

? ? ? ? ? ? printf("恭喜,獲獎!!!!!\n");

? ? ? ? }

? ? ? ? else

? ? ? ? {

? ? ? ? ? ? printf("很遺憾,期望你再接再厲1\n");

? ? ? ? }

? ? }

? ? else

? ? {

? ? ? ? printf("很遺憾,期望你再接再厲2\n");

? ? }

? ??

? ??

? ??

? ? return 0;

}


0 回復 有任何疑惑可以回復我~
  1. 要輸入英文符號 ; 而不是中文符號;。應該是員工獎后面的弄錯了。

  2. {}花括號內的語句要用;結尾。

  3. 很遺憾那句話的“”這個符號漏了一邊的。

    我大概是看到的就這些。



0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

有人可以幫我看看嘛?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號