nextday

#include<stdio.h>
void main()
{
int a,b,c,d;
printf("Please input year month day:");
scanf("%d%d%d",&a,&b,&c);
if(c==28)
   if(b==2)
    if(a%4==0)
     b=3;c=1;
   else
    c++;
else if(c==29)
   c++;
else if(c==30)
   if(b=1||3||5||7||8||10||12)
    c++;
   else
    if(b<12)
      b++;c=1;
    else
   a++;b=1;c=1;
 printf("%d%d%d",&a,&b,&c\n);

return 0;
}

猜你喜欢

转载自www.cnblogs.com/zhongfeibao/p/10211676.html
今日推荐