全球旧事资料 分类
AGAINli
e
judgeyeari
输出
m1
m32
3
Y
输出m的数
strcattempOu
fvoidfi
d_day
定义整型变量adaymo
thyearsumleapSkW
输入年月日
switchmo
th
case1?Ysum0break
N
case2?
N
case3?
N
case4?
Y
sum31break
Y
sum59break
Ysum90break
N
case5?
N
Y
sum120break
Y
sumsumday
N
判断是否闰年?
leap0
Y
leap1
4mo
th2?N
Ysum1
f3程序实现
31程序实现时应考虑的问题
选择
选择1时调用函数cale
dar
选择2时调用函数fi
d_day
选择
32主要源代码及说明
i
tjudgei
tyeari
tmo
th定义judge函数
5
选择其他数字则输入错误
fifmo
th1mo
th3mo
th5mo
th7mo
th8
mo
th10mo
th12
retur
1返回1时,表示天数为31天的月份
elseifmo
th2

ifyear40year1000year4000判断闰
年,真为平年
retur
2
elseretur
3

elseretur
4

voidcale
dar

i
tyearija
mkli
e定义变量
co
stcharmo
th1212
好听全球资料 返回顶部