标签:|| name return cin tps http out bool div
小学生c++编程资料
链接:https://pan.baidu.com/s/1FfOirxJ9rrY7rxtHUM4W_A
提取码:uqm9
#include<iostream> using namespace std; int main() { bool flag; int year; cout<<"请输入一个年份:"; cin>>year; if((year%4==0&&year%100!=0)||year%400==0) flag=true; else flag=false; if(flag) cout<<year<<"是闰年"<<endl; else cout<<year<<"是平年"<<endl; return 0; }
标签:|| name return cin tps http out bool div
原文地址:https://www.cnblogs.com/kixiaoyuan/p/12694962.html