帮我改改,int days=sum_day(month,day); if(leap(year)&&month>2) days++; #include int sum_day(int ,int),leap(int);void main(){int year,month,day;cout>year>>month>>day;int days=sum_day(month,day);if(leap(year)&&month>2)days++;cout
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 01:38:03
帮我改改,int days=sum_day(month,day); if(leap(year)&&month>2) days++; #include int sum_day(int ,int),leap(int);void main(){int year,month,day;cout>year>>month>>day;int days=sum_day(month,day);if(leap(year)&&month>2)days++;cout
帮我改改,int days=sum_day(month,day); if(leap(year)&&month>2) days++;
#include
int sum_day(int ,int),leap(int);
void main()
{
int year,month,day;
cout>year>>month>>day;
int days=sum_day(month,day);
if(leap(year)&&month>2)
days++;
cout
帮我改改,int days=sum_day(month,day); if(leap(year)&&month>2) days++; #include int sum_day(int ,int),leap(int);void main(){int year,month,day;cout>year>>month>>day;int days=sum_day(month,day);if(leap(year)&&month>2)days++;cout
int days=sum_day(month,day); 这句是调用函数int sum_day(int month,int day);它的作用是返回非闰年某个月的天数
if(leap(year)&&month>2) days++; 这句的意思是如果是闰年的话而且是2月份的话,那么2月份的天数加1