C语言写的一个简单日历。
好久没有写C了~
#include <stdio.h>
#include <stdlib.h>
int months[12] = {31,28,31,30,31,30,31,31,30,31,30,31};
void init()
{
system("date");
}
//判断是否为闰年
int JudgeRunnian(int year)
{
//可以同时被4整除和不能被100整除
return year%4==0&&year%10
原创
2021-12-06 00:11:07 ·
262 阅读 ·
0 评论