欢迎来到天天文库
浏览记录
ID:37909240
大小:17.50 KB
页数:3页
时间:2019-06-02
《C++日历源代码》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、#include#include#include#include#includeusingnamespacestd;intx,md,mm;intscreen(){cout<<"***************************日历***************************"<2、tw(8)<<"星期三"<3、4、((a%4==05、)&&(a%100!=0))){intn[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};for(i=0;i6、;time_tt=time(NULL);tm*now=localtime(&t);constchar*weekDays[]={"星期天","星期一","星期二","星期三","星期四","星期五","星期六"};printf("现在是:%u年%u月%u日%s%u:%u:%u",now->tm_year+1900,now->tm_mon+1,now->tm_mday,weekDays[now->tm_wday],now->tm_hour,now->tm_min,now->tm_sec);screen();a=now->t7、m_year+1900;b=now->tm_mon+1;c=now->tm_mday;day(a,b,c);for(;;){if((b<13)&&(c<=x))break;cout<<"日期格式不正确,请重新输入"<>a>>b>>c;}day(a,b,c);for(i=0;i<(mm%7);i++){cout<8、>f;if(f>=5)cout<<"今天心情不错哦"<>a>>b>>c;day(a,b,c);for(;;){if((b<13)&&(c<=x))break;cout<<"日期格式不正确,请重新输入"<>a>>b>>c;}day(a,b,c);p=1;for(i=0;i<(mm%79、);i++){cout<
2、tw(8)<<"星期三"<3、4、((a%4==05、)&&(a%100!=0))){intn[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};for(i=0;i6、;time_tt=time(NULL);tm*now=localtime(&t);constchar*weekDays[]={"星期天","星期一","星期二","星期三","星期四","星期五","星期六"};printf("现在是:%u年%u月%u日%s%u:%u:%u",now->tm_year+1900,now->tm_mon+1,now->tm_mday,weekDays[now->tm_wday],now->tm_hour,now->tm_min,now->tm_sec);screen();a=now->t7、m_year+1900;b=now->tm_mon+1;c=now->tm_mday;day(a,b,c);for(;;){if((b<13)&&(c<=x))break;cout<<"日期格式不正确,请重新输入"<>a>>b>>c;}day(a,b,c);for(i=0;i<(mm%7);i++){cout<8、>f;if(f>=5)cout<<"今天心情不错哦"<>a>>b>>c;day(a,b,c);for(;;){if((b<13)&&(c<=x))break;cout<<"日期格式不正确,请重新输入"<>a>>b>>c;}day(a,b,c);p=1;for(i=0;i<(mm%79、);i++){cout<
3、
4、((a%4==0
5、)&&(a%100!=0))){intn[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};for(i=0;i
6、;time_tt=time(NULL);tm*now=localtime(&t);constchar*weekDays[]={"星期天","星期一","星期二","星期三","星期四","星期五","星期六"};printf("现在是:%u年%u月%u日%s%u:%u:%u",now->tm_year+1900,now->tm_mon+1,now->tm_mday,weekDays[now->tm_wday],now->tm_hour,now->tm_min,now->tm_sec);screen();a=now->t
7、m_year+1900;b=now->tm_mon+1;c=now->tm_mday;day(a,b,c);for(;;){if((b<13)&&(c<=x))break;cout<<"日期格式不正确,请重新输入"<>a>>b>>c;}day(a,b,c);for(i=0;i<(mm%7);i++){cout<8、>f;if(f>=5)cout<<"今天心情不错哦"<>a>>b>>c;day(a,b,c);for(;;){if((b<13)&&(c<=x))break;cout<<"日期格式不正确,请重新输入"<>a>>b>>c;}day(a,b,c);p=1;for(i=0;i<(mm%79、);i++){cout<
8、>f;if(f>=5)cout<<"今天心情不错哦"<>a>>b>>c;day(a,b,c);for(;;){if((b<13)&&(c<=x))break;cout<<"日期格式不正确,请重新输入"<>a>>b>>c;}day(a,b,c);p=1;for(i=0;i<(mm%7
9、);i++){cout<
此文档下载收益归作者所有