第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

為什么右邊調(diào)試總是不對?

#include <stdio.h>

int study()

?{

? ? ?printf("%s\n","小明在慕課網(wǎng)上學習\n");

? ? return 0;

? ? }

int studys(int n)

?{

printf("小明在慕課網(wǎng)上學習了%d門課程\n",n);

? ? ?return 0;

? ? ?

?}





int main()

{

? ? study();

? ? studys(5);

? ? return 0;

}

提示說正確,但是右邊一摩爾提示說調(diào)試錯誤

/249/5442/8LOv/hello.c: In function 'studys':
/249/5442/8LOv/hello.c:9:1: error: stray '\357' in program
printf("小明在慕課網(wǎng)上學習了%d門課程\n",n);
^
/249/5442/8LOv/hello.c:9:1: error: stray '\274' in program
/249/5442/8LOv/hello.c:9:1: error: stray '\214' in program
/249/5442/8LOv/hello.c:9:56: error: expected ')' before 'n'
printf("小明在慕課網(wǎng)上學習了%d門課程\n",n); ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?


是咋個回事喃?

正在回答

3 回答

printf("小明在慕課網(wǎng)上學習了%d門課程\n",n);中“,”逗號錯了。

1 回復(fù) 有任何疑惑可以回復(fù)我~

study()執(zhí)行完return 0; ? ??studys(int n)不執(zhí)行

把int study()改成void?study() 去掉return 0;

0 回復(fù) 有任何疑惑可以回復(fù)我~

可能是括號的半角有問題,調(diào)節(jié)成英文輸入法重新敲一邊吧

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

為什么右邊調(diào)試總是不對?

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號