计算闰年代码
来源:互联网 发布:mac上的视频播放软件 编辑:程序博客网 时间:2024/05/02 02:55
#include <iostream>
using namespace std;
bool prime;
int main()
{
int f(int);
int year;
cin>>year;
if(year==1)
cout<<year<<"是闰年"<<endl;
else
cout<<year<<"不是闰年"<<endl;
}
int f(int a)
{
if(a%4==0)
{
if(a%100==0)
{
if(a%400==0)
return(true);
else
return(false);
}
else
return(true);
}
else
return(false);
}
- 计算闰年代码
- 闰年计算
- 闰年计算
- 闰年计算
- 一行代码判断闰年和计算某月份天数
- Javascript 计算闰年
- 用shell计算闰年
- 闰年的计算
- 计算闰年平年
- 闰年的计算
- Javascript计算闰年
- 闰年的计算
- 闰年的计算问题
- 闰年的计算
- 使用python计算闰年
- Java计算闰年
- c语言 计算闰年
- 给出年月日计算第几天。目的:熟悉以及简练闰年年份代码
- sql过滤已经存在的数据 过滤掉已经选择的机构
- 中语言超酷特性 之 --- 多名
- 3dMax教程网站 文字版
- GD验证码练习
- ZOJ 1610 解题报告
- 计算闰年代码
- pcc32应用1
- Haskell读入一个字符串,把它转换成数字
- memset函数
- 输入日期计算天数代码
- inet_ntoa导致内存泄露
- Perl语言的常用符号
- MySql-执行外部sql脚本 outfile disable问题
- poj 2752 Seek the Name, Seek the Fame(理解KMP的失配函数!) .