函数的输出为输入日期后一天的日期
2022-11-05 15:31:39 3 举报
NextDate函数包含三个变量month、day和year,函数的输出为输入日期后一天的日期。 要求输入变量month、day和year均为整数值,并且满足下列条件: 条件1 1≤ month ≤12 条件2 1≤ day ≤31 条件3 1912≤ year ≤2050
作者其他创作
大纲/内容
Y
N
The next day is :year.month+1.1
month==4 || month==6 || month==9 || month==11
The next day is :year.month.day+1
The date is not right!
month==2
month==12
The next day is :year+1.1.1
day==29
end
please enter again!
The next day is:year.month+1.1
day==31
day==30
day==28
The next day is:year.month.day+1
year<=2050 && year>=1912
day<=29 && day>=1
begin
year%400==0 || (year%4==0 && year%100!=0)
day<=30 && day>=1
month==1 || month==3 || month==5 || month==7 || month==8 || month==10
day>=1 && day<=30
收藏
0 条评论
下一页