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

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

求指點(diǎn)哪錯了?

#include <stdio.h>
int main()
{?? int sum;
??? int year = 2008;
??? int month = 8;
??? int day = 8;
??? int month1 =31, month3=31, month4 =30,mouth5=31,mouth6=30,
??????? month7=31, month8=31, month9=30,month10=31, month11=30;
???????
??? if(year%4==0)
??? {? int month2=29;}
??? else
??? { int month2=28;}
???? int? moutha=month-1;
??? switch(montha)
??????? {case 1:sum=month1;
??????? break;
???????? case 2:sum=month1+month2;
???????? break;
???????? case 3:sum=month1+month2+month3;
???????? break;
???????? case 4:sum=month1+month2+month3+month4;
???????? break;
???????? case 5:sum=month1+month2+month3+month4+month5;
???????? break;
???????? case 6:sum=month1+month2+month3+month4+month5+month6;
???????? break;
???????? case 7:sum=month1+month2+month3+month4+month5+month6
???????????????????? +month7;
???????? break;
???????? case 8:sum=month1+month2+month3+month4+month5+month6
???????????????????? +month7+month8;
???????? break;
???????? case 9:sum=month1+month2+month3+month4+month5+month6
???????????????????? +month7+month8+month9;
???????? break;
???????? case 10:sum=month1+month2+month3+month4+month5+month6
???????????????????? +month7+month8+month9+month10;
???????? break;????????????
???????? case 11:sum= month1+month2+month3+month4+month5+month6
???????????????????? +month7+month8+month9+month10+mounth11;
???????? break;
????????? default:
????????? break;
???????? }
???????? sum=sum+day;
???????? printf("d%年d%月d%日是該年的第d%天",year,mouth,day,sum);
???????? return 0;
???????
???????
??? }

正在回答

2 回答

就是month1那些為解釋就是定義

其次

'mouth'?undeclared

打錯了在使用前一定要定義并且加了數(shù)字就是另一個新的同樣需要定義

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

你不看錯誤提示的嗎?

'montha'?undeclared
'month2'?undeclared
'month5'?undeclared
'month6'?undeclared
'mounth11'?undeclared
'mouth'?undeclared


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

舉報

0/150
提交
取消
C語言入門
  • 參與學(xué)習(xí)       926979    人
  • 解答問題       21533    個

C語言入門視頻教程,帶你進(jìn)入編程世界的必修課-C語言

進(jìn)入課程

求指點(diǎn)哪錯了?

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

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

幫助反饋 APP下載

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

公眾號

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