求C语言程序,我输入日期(年月日),然后输入前后加减多少天,得出那个日 ...答:{ int year,month,day;int leapyear=0;//闰年时使用 int daytime=0;int sum;static int month_date[12]={31,28,31,30,31,30,31,31,30,31,30,31};printf("请输入日期:(例如:2010 5 27)");scanf("%d%d%d",&year,&month,&day);if(year<=0||month>12||month<1)//判断输入是否...
C语言题目:设计一个程序输入年月日 输出下一天的年月日 要C语言,不要...答:include "stdio.h"struct date { unsigned short year ;unsigned char month ;unsigned char day ;};date today,tomorrow ;void main(){ unsigned char ltd[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};while(1){ while(!ltd[0]){ printf("请输入日期,格式如:2011,4,1...