#includeint year = 0;
int month = 0;
int day = 0;
int hour = 0;
int minute = 0;
int second = 0;
int main()
{
void inputdate(); /*输入年-月-日 时:分:秒*/
void nextsceond(); /*计算下一秒的时间*/
int leapyear(int year); /*判断是否为闰年*/
int daymonth(int month); /*返回每个月份对应的天数*/
inputdate();
leapyear(year);
daymonth(month);
nextsceond();
system("pause");
return 0;
}
/*函数inputdate()输入年-月-日 时:分:秒*/
void inputdate()
{
int loop;
for(loop = 0; loop < 3; loop++)
{
printf("请输入年-月-日 时:分:秒:");
scanf("%d-%d-%d %d:%d:%d", &year, &month, &day, &hour, &minute, &second);
if(month < 1 || month > 12)
{