编译有错误

用户提问 |浏览1333次
收藏|2020/03/11 17:09

满意回答

2020/03/11 17:33

只有一个错,那就是多了一个英文中括号,如图:下面是我修改后的程序:#include <iostream.h>int main(){ int year,month,day; year=2020; month=5; if(month==1||month==3||month==5||month==7||month==8||month==10||month==12) day=31; else if(month==4||month==6||month==9||month==11) day=30; else if((year%4==0 &&year%100!=0)||year%400==0) day=29; else day=28; cout<<year<<"年"<<month<<"月"<<day<<"日"; return 0;}下面是运行结果图:还有问题吗,谢谢采纳,Thanks♪(・ω・)ノ
匿名

其他回答(1)
  • 360U1285124469
    其他
    我不知道这个答案
    回答于 2020/03/11 17:45
0人关注该问题
+1

 加载中...