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

正文內(nèi)容

日期和時間課程設計報告(參考版)

2025-01-21 23:49本頁面
  

【正文】 } 。 } return false。 if(GetHour ()== ()) { if(GetMin () ()) return true。 if(GetMonth ()== ()) { if(GetDayOfMonth () ()) return true。 M)const { if (Year ()) return true。 } return false。 } return false。 } return false。 if(GetHour ()== ()) { if(GetMin () ()) return true。 if(GetMonth ()== ()) { if(GetDayOfMonth () ()) return true。 M)const{ if (Year ()) return true。 SetYear( ())。 SetDay( ())。 SetMin( ())。}void cTDmanage::operator = (const cTDmanageamp。 newminute=newminute+60*newhour+24*60*NewDays。 newhour=GetHour () ()。 else NewDays=(NewDays+Temp2Temp1)。Temp3++) { NewDays+=((IsLeapYear(Temp3))? 366 : 365)。 } else { for(int Temp3=min(GetYear (), ())。 Temp2=GetDayOfYear( (), (), ())。 M){ int NewDays,Temp1,Temp2。 //retrive the current day in the specific month return cTDmanage(YearTemp,MonthTemp,DayTemp,HourTemp,MinuteTemp,SecondTemp)。 //retrive the current day in the specific month DayTemp+=(cTime_t::FlagMoreDay)。//and add a year } MonthTemp=RetriveMonth(NewDays,YearTemp)。 if(NewDays ((IsLeapYear(YearTemp))? 366 : 365)) //if the sum is more than in 1 year { NewDays=NewDays ((IsLeapYear(YearTemp))? 366 : 365)。 YearTemp=GetYear ()+ ()。 //to add day to date class HourTemp=24。//add to hour } else HourTemp=GetHour ()+ ()。 if(MinuteTemp=60)//more than 1 hour { MinuteTemp=60。 MinuteTemp=GetMin ()+ ()+1。//define 3 temp variables to get time data SecondTemp=GetSec()+()。}const cTDmanage cTDmanage::operator + (const cTDmanageamp。endif// End//include include define max(a, b) (((a) (b)) ? (a) : (b))define min(a, b) (((a) (b)) ? (a) : (b))void cTDmanage::print(){ cDate_t::print()。M) 。 operator (istream amp。M) 。 operator (ostream amp。 } void ChangeTimeFormat() { cTime_t::ChangeFormat()。 void AddSecond()。 AddSecond() 。 const cTDmanage operator (int MINUTE) 。 M) 。 M) 。 M)const。 M)const。 M)const。 M)const。 M)const。 M)const。//OK //option to put all get and set function of date and time class void print()。}// end// Begininclude include include include include ifndef TDmanage_hdefine TDmanage_hclass cTDmanage:public cTime_t,public cDate_t{public: cTDmanage ():cTime_t(),cDate_t() {} cTDmanage (int year,int month,int day,int hour,int minute,int second):cDate_t(year,month,day),cTime_t(hour,minute,second){} cTDmanage (int hour,int minute,int second):cTime_t(hour,minute,second) {} void operator = (const cTDmanageamp。}void Error5() //used for operator and GetDayOfYear function{ coutThere are error/s in your date (year less then 1900). Can39。}void Error4() //used for operaor { coutThere are error/s in your date (year less then 1900). Can39。}void Error3() //used for operator +{ coutThere are error/s in your date (year less then 1900). Can39。}void Error2() //used for trying to print an error class{ coutThere are error/s in your date (year less then 1900). Can39。endif// End////implementation of include void Error1() // used for setting class with c39。void Error4()。void Error2()。 return(cDate_t(YearTemp,MonthTemp,DayTemp))。 } DayTemp=RetriveDay(NewDays,YearTemp)。 NewDays=Tempday。 int Temp=GetDayOfYear(Year,Month,Day)。}const cDate_t cDate_t::operator (int Days){ int YearTemp,DayTemp,MonthTemp,NewDays。 MonthTemp=RetriveMonth(NewDays,YearTemp)。 YearTemp+=1。 NewDays=GetDayOfYear(Year,Month,Day)+day。 int day=Days。 } else Day。 } else if( Day==1 ) //1月開始 { Month。 //12月份為31天 Month=12。amp。 } else ++Day。 } else if( (Day==GetDaysInMonth(Month,Year)) ) // 1月結束 { Day=1。 Month=1。amp。 } return 1。 mon==2) ) return mon。 (mon==4 || mon==6 || mon==9 || mon==11)) || (day=M amp。 (mon==1 || mon==3 || mon==5 || mon==7 || mon==8 || mon==10 || mon==12 ))|| (day=30 amp。++mon) { if( (day=31 amp。 for(int mon=1。 int leap=(IsLeapYear(year))。 } return 1。 mon==2) ) return day。 (mon==4 || mon==6 || mon==9 || mon==11)) || (day=M amp。 (mon==1 || mon==3 || mon==5 || mon==7 || mon==8 || mon==10 || mon==12))|| (day=30 amp。++mon) { if ( (day=31 amp。 for(int mon=1。 int leap=(IsLeapYear(year))。 }//char* cDate_t::GetNameOfMonth() // 轉換成月份的英文名{ return Mon[Month1]。}//char* cDate_t::GetDayOfWeekName() // 轉換成星期的英文名{ int Weekday=GetDayOfWeek()。amp。 else return((weekday+Day)%71)。++TheMonth) weekday=(weekday+GetDaysInMonth(TheMonth,Year))%7。 } for(int TheMonth=1。++TheYear) //從1/1/1900年開始計算 { if(IsLeapYear(TheYear)) weekday=(weekday+366)%7。 //in 1/1/1900(saturday==0,sunday==1,......) for(int TheYear=1900。 } return 1。 case February: if(IsLeapYear(year)) return 29。 //返回最后結果 }//int cDate_t::GetDaysInMonth(int month,int year) // 取得每月的最大天數(shù){ switch(month) { case January:case Mars: case May: case July: case August: case October: case December: return 31。 } if(DaysIn1Month==1) return 1。 NumOfDay+=DaysIn1Month。amp。 //結果清零 int DaysIn1Month=0。//same with month return (cDate_t (YearTemp,MonthTemp,DayTemp) )。 //sub 1 year } DayTemp=RetriveDay(NewDays,YearTemp)。 //if the data ok get their substraction if(NewDays0) // the substraction is less then zero { NewDays = NewDays + ((IsLeapYear(YearTemp))? 366 : 365)。//print error messege return (cDate_t (1,1,1) )。//return error class } Temp2=GetDayOfYear(,)。 // get days of year of THIS object if(Temp10) //error { Error5()。//print error messege return (cDate_t (1,1,1) )
點擊復制文檔內(nèi)容
試題試卷相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1