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

正文內(nèi)容

日期和時(shí)間課程設(shè)計(jì)報(bào)告-資料下載頁(yè)

2025-03-23 09:02本頁(yè)面
  

【正文】 DayTemp=RetriveDay(NewDays,YearTemp)。 MonthTemp=RetriveMonth(NewDays,YearTemp)。 return(cDate_t(YearTemp,MonthTemp,DayTemp))。}// end// Begininclude ifndef _error_hdefine _error_hvoid Error1()。void Error2()。void Error3()。void Error4()。void Error5()。endif// End////implementation of include void Error1() // used for setting class with c39。tor or operator ={ coutYou tried to set a year that is less then 1900, which is illegalendl。}void Error2() //used for trying to print an error class{ coutThere are error/s in your date (year less then 1900). Can39。t print date.endl。}void Error3() //used for operator +{ coutThere are error/s in your date (year less then 1900). Can39。t use + of date.endl。}void Error4() //used for operaor { coutThere are error/s in your date (year less then 1900). Can39。t use of date.endl。}void Error5() //used for operator and GetDayOfYear function{ coutThere are error/s in your date (year less then 1900). Can39。t get day of year.endl。}// 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。 M)。//OK //option to put all get and set function of date and time class void print()。 //operator: bool operator (const cTDmanageamp。 M)const。 bool operator = (const cTDmanageamp。 M)const。 bool operator (const cTDmanageamp。 M)const。 bool operator = (const cTDmanageamp。 M)const。 bool operator == (const cTDmanageamp。 M)const。 bool operator != (const cTDmanageamp。 M)const。 const cTDmanage operator + (const cTDmanageamp。 M) 。 int operator (const cTDmanageamp。 M) 。 const cTDmanage operator + (int MINUTE) 。 const cTDmanage operator (int MINUTE) 。 //using Date and Time ++ operator: void operator ++ () { AddDay() 。 AddSecond() 。 } void AddDay()。 void AddSecond()。 void ChangeDateFormat() { cDate_t::ChangeFormat()。 } void ChangeTimeFormat() { cTime_t::ChangeFormat()。 } friend ostreamamp。 operator (ostream amp。out,cTDmanage amp。M) 。 friend istreamamp。 operator (istream amp。in, cTDmanage amp。M) 。}。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()。 cTime_t::print()。}const cTDmanage cTDmanage::operator + (const cTDmanageamp。 M){ int HourTemp,MinuteTemp,SecondTemp。//define 3 temp variables to get time data SecondTemp=GetSec()+()。 if(SecondTemp=60)//more than 1 minute { SecondTemp=60。 MinuteTemp=GetMin ()+ ()+1。//so add to minute } else MinuteTemp=GetMin ()+ ()。 if(MinuteTemp=60)//more than 1 hour { MinuteTemp=60。 HourTemp=GetHour ()+ ()+1。//add to hour } else HourTemp=GetHour ()+ ()。 if(HourTemp=24) { FlagMoreDay=1。 //to add day to date class HourTemp=24。 } int YearTemp,MonthTemp,DayTemp,NewDays。 YearTemp=GetYear ()+ ()。 NewDays=GetDayOfYear(GetYear (),GetMonth (),GetDayOfMonth ()) + GetDayOfYear( (), (), ())。 if(NewDays ((IsLeapYear(YearTemp))? 366 : 365)) //if the sum is more than in 1 year { NewDays=NewDays ((IsLeapYear(YearTemp))? 366 : 365)。//cut 1 year days YearTemp+=1。//and add a year } MonthTemp=RetriveMonth(NewDays,YearTemp)。//same with month DayTemp=RetriveDay(NewDays,YearTemp)。 //retrive the current day in the specific month DayTemp+=(cTime_t::FlagMoreDay)。 DayTemp=RetriveDay(NewDays,YearTemp)。 //retrive the current day in the specific month return cTDmanage(YearTemp,MonthTemp,DayTemp,HourTemp,MinuteTemp,SecondTemp)。}int cTDmanage::operator (const cTDmanageamp。 M){ int NewDays,Temp1,Temp2。 Temp1=GetDayOfYear(GetYear (),GetMonth (),GetDayOfMonth ())。 Temp2=GetDayOfYear( (), (), ())。 if(GetYear ()== ()) { NewDays=max(Temp1,Temp2)min(Temp1,Temp2)。 } else { for(int Temp3=min(GetYear (), ())。Temp3max(GetYear (), ())。Temp3++) { NewDays+=((IsLeapYear(Temp3))? 366 : 365)。 } if(GetYear () ()) NewDays=NewDays+Temp1Temp2。 else NewDays=(NewDays+Temp2Temp1)。 } int newhour,newminute。 newhour=GetHour () ()。 newminute=GetMin () ()。 newminute=newminute+60*newhour+24*60*NewDays。 return newminute。}void cTDmanage::operator = (const cTDmanageamp。 M){ SetSec(())。 SetMin( ())。 SetHour ( ())。 SetDay( ())。 SetMon( ())。 SetYear( ())。}bool cTDmanage::operator (const cTDmanageamp。 M)const{ if (Year ()) return true。 if(Year== ()) { if(GetMonth () ()) return true。 if(GetMonth ()== ()) { if(GetDayOfMonth () ()) return true。 if(GetDayOfMonth ()== ()) { if (GetHour () ()) return true。 if(GetHour ()== ()) { if(GetMin () ()) return true。 if(GetMin ()== ()) { return (GetSec()())。 } return false。 } return false。 } return false。 } return false。 } return false。}bool cTDmanage::operator = (const cTDmanageamp。 M)const { if (Year ()) return true。 if(Year== ()) { if(GetMonth () ()) return true。 if(GetMonth ()== ()) { if(GetDayOfMonth () ()) return true。 if(GetDayOfMonth ()== ()) { if (GetHour () ()) return true。 if(GetHour ()== ()) { if(GetMin () ()) return true。 if(GetMin ()== ()) { return (GetSec()=())。 } return false。 } return false。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1