freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

課程設(shè)計(jì)萬(wàn)年歷的設(shè)計(jì)-文庫(kù)吧資料

2024-09-04 21:27本頁(yè)面
  

【正文】 onthsurplus(t)。 } else if(diffday=yearsurplus(t))//年未變 { lastyear=()。 lastmonth=()。 cindiffday。 int lastyear=0。 int lastday=0。 } void stuation2(datetime amp。 } int yearsurplus(datetime amp。 } int monthsurplus(datetime amp。 } diffday=d1+d2+d3。yearnyear。 int year=0。 int d2=dayinyear(temp)。 } diffday=d1+d2+d3。year()。 int year=0。 int d2=dayinyear(t)。 } else { diffday=abs(dayinyear(t)dayinyear(temp))。 int diffday=0。 cinnhournminutensecond。 cinnyearnmonthnday。int nsecond。 int nhour=0。int nmonth=0。 } } 25 } void stuation1(datetime amp。 if((ik)==6) { coutendl。 if(i10) { cout i 。i++) { int flag=1。 for(i=k。k++) coutk 。 for(k=1。 int num=getmonthfirst(t)。 int j=0。 t)//打印當(dāng)前月日歷 24 { int i=0。 else return 7。 else if(()==星期五 ) return 5。 else if(()==星期三 ) return 3。//判斷對(duì)應(yīng)星期數(shù) if(()==星期一 ) return 1。 t)//返回對(duì)應(yīng)月的第一天星期數(shù) { datetime temp((),(),1,(),(),())。 23 } cout() endl。 case 6: (星期天 )。 case 5: (星期六 )。 case 4: (星期五 )。 case 3: (星期四 )。 case 2: (星期三 )。 case 1: (星期二 )。 switch(week) { case 0: (星期一 )。 } diffday=d1+d2+d3。year()。 int year=0。 int d2=dayinyear(t)。 } else { diffday=dayinyear(t)1。 int diffday。 } void getweek( datetime amp。 } day+=()。i()。 t)//日期在年中的天數(shù) 21 { int i=0,day=0。 return *this。 } if((thisgetday()+())maxday ||(thisgetday()+())=0) { thissetday(1)。 } else { maxday=28。 int maxday=0。 if((thisgetmonth()+())12 || (thisgetmonth()+())=0) { thissetmonth(1)。 t) { if((thisgetyear()+())1900) { thissetyear(1900)。 return *this。 thissetminute(())。 thissetday(())。 t) { thissetyear(())。 } } } } } return *this。 if(thisgetmonth() 12) { thissetmonth(1)。 if(thisgetday()mon_day( thisgetyear() ,thisgetmonth())) { thissetday(1)。 if(thisgethour()23) { thissethour(0)。 if(thisgetminute()59) { thissetminute(0)。 18 if(thisgetsecond()59) { thissetsecond(0)。 c):time(c),date(nyear,nmonth,nday) {} datetime::datetime(date amp。 } datetime::datetime():date(),time(){}。 thismonth =m。 } date::~date(){}。 month=。 } date::date(date amp。 } if(dmaxday || d=0) { d=1。 } else { maxday=28。 int maxday=0。 if(m12 || m=0) { 16 m=1。 } date::date(int y,int m,int d) { if(y1900) { y=1900。 month=0。 second=。c) 15 { hour=。} else second=nsecond。} else minute=nminute。 } else hour=nhour。 second=0。 time::time()//判斷時(shí)間并進(jìn)行賦值 { hour=0。 t)。 t)。 datetime addbysecond()。 datetime(date amp。 datetime(int nyear,int nmonth,int nday,time amp。 class datetime:public date,public time { private: public: datetime()。t)。t)。 void reset(int y=0,int m=0,int d=0)。 void setweek(string c){week=c。 void setday(int nday){day=nday。 void setmonth(int nmonth){month=nmonth。 void setyear(int nyear){year=nyear。 string getweek(){ return week。 int getday(){return day。 int getmonth(){return month。 int getyear(){return year。t)。 date(int y,int m,int d)。 string week。 int month。 }。 void setsecond(int nsecond){second=nsecond。 void setminute(int nminute){minute=nminute。 void sethour(int nhour){hour=nhour。 int getsecond(){return second。 int getminute(){return minute。 int gethour(){return hour。c)。 time(int nhour,int nminute,int nsecond)。 int second。 12 } class time { private: int hour。 } int getyearday(int year)//返回一年天數(shù) { if(isleapyear(year)) return 366。month==2) { return 29。 } int mon_day(int year ,int month)//判斷月份對(duì)應(yīng)的天數(shù) { if (isleapyear(year)amp。amp。 int mon[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}。 定義函數(shù) week(),以及 situation(),完成日期對(duì)應(yīng)星期數(shù)以及時(shí)間差的計(jì)算過(guò)程,完善電子時(shí)鐘以及萬(wàn)年歷的功能。主要功能為給私有數(shù)據(jù)成員賦值,實(shí)現(xiàn)方式為 通過(guò)調(diào)用析構(gòu)函數(shù)實(shí)現(xiàn)。 void setweek(string c){week=c。 void setday(int nday){day=nday。 void setmonth(int nmonth){month=nmonth。主要功能為返回年月日的值,實(shí)現(xiàn)方式為 :調(diào)用成員函數(shù) 成員函數(shù) void sety
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1