资源描述:
《横向日历源代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、横向日历源代码.txt对的时间遇见对的人是一生幸福;对的时间遇见错的人是一场心伤;错的时间遇见对的人是一段荒唐;错的时间遇见错的人是一声叹息。#include#includeusingnamespacestd;#includeintmain(){intyear,Days,i,x,month;while(true){cout<<"pleaseinputtheyear:";cin>>year;cout<>x;cout<2、<3、
4、((year%4==0)&&(year%100!=0)));intr=(T)?29:28;intD[12]={31,r,31,30,31,30,31,31,30,31,30,31};intB[12]={1,2,3,4,5,6,7,8,9,10,11,12};intp=12/x+1;for(intg=0;g<=(p-1);g++){for(inta=g*x;a<=x*(g+1)-1&&a<=11;a++)cout<<"t"<<"t"<<"t"<<"********"<
5、"<<"t"<<"t"<<"t";cout<6、ays=365*(year-1)+(year-1)/4+(year-1)/400-(year-1)/100+days1;intC=Days%7;if(j==0){for(intt=0;t<=C-1;t++)cout<<"t";}intm=7*j+1;inte=(m>C+1)?m:(C+1);intf;for(f=e;f<=7*(j+1);f++)//输出每一行{if(f<=D[month-1]+C)cout<D[month-1]+C)cout<<""<<"t";}cout<<"t";}cout<7、rn0;}堪称完美#include#includeusingnamespacestd;#includeintmain(){intyear,Days,i,x,month;while(true){cout<<"pleaseinputtheyear:";cin>>year;cout<>x;cout<8、
9、((year%4==0)&&(year%100!=0)));intr=
10、(T)?29:28;intD[12]={31,r,31,30,31,30,31,31,30,31,30,31};intB[12]={1,2,3,4,5,6,7,8,9,10,11,12};intp=12/x+1;for(intg=0;g<=(p-1);g++){for(inta=g*x;a<=x*(g+1)-1&&a<=11;a++)cout<<"*********"<
11、tw(3)<<"二"<