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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

幫忙看下哪里出錯(cuò)了,謝謝

#include <stdio.h>

int money(int m, int t)

{

float money;

if (m > 3)

{

if (t >= 23 || t < 5)

{

money = (m - 3) * 2.3 * 1.2 + 14;

}

else

{

money = (m - 3) * 2.3 + 14;

}

}

else

{

money = 14;

}

return money;

}

int main()

{

printf("小明每天打車的總費(fèi)用為:%.1f\n",money(12, 9)+money(12,18));

return 0;

}

https://img1.sycdn.imooc.com//5d3aa9820001c5ea08000315.jpg

正在回答

2 回答

printf("小明每天打車的總費(fèi)用為:%.1f\n",money(12, 9)+money(12,18));這句逗號(hào)用的全角。

int money(int m, int t) 函數(shù)返回類型定義錯(cuò)誤。

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

謝謝,你是怎么一眼看出我的符號(hào)是中文的的?我找半天沒找出來。。。

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

小小疾飛

因?yàn)槲矣忻孛芪淦?/div>
2019-07-26 回復(fù) 有任何疑惑可以回復(fù)我~
#2

小小疾飛

我一般在這里調(diào)試 https://www.runoob.com/try/runcode.php?filename=helloworld&type=c
2019-07-26 回復(fù) 有任何疑惑可以回復(fù)我~
#3

小小疾飛

還有你的軟件給出了錯(cuò)誤信息,25行出問題了,你以后就按提示找,定位問題也會(huì)比較迅捷。
2019-07-26 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

幫忙看下哪里出錯(cuò)了,謝謝

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

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

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