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

正文內(nèi)容

[學(xué)士論文]畢業(yè)設(shè)計(jì)論文-基于單片機(jī)的具有語(yǔ)音報(bào)時(shí)電子鐘-資料下載頁(yè)

2025-01-18 13:14本頁(yè)面
  

【正文】 PlaySpeakHour(): 報(bào)時(shí)// PlaySpeakMinute(): 報(bào)分//參數(shù):年。月。日。時(shí)。分。數(shù)據(jù)均為16進(jìn)制//返回:無(wú)//*********************************************************////input: 年16進(jìn)制//*********************************************************//PlaySpeakYear(int YearTemp) //*************年{ PlayRespond((YearTemp/1000)+C_T00)。 PlayRespond((YearTemp%1000)/100+C_T00)。 PlayRespond((YearTemp%100)/10+C_T00)。 PlayRespond((YearTemp%10)+C_T00)。 PlayRespond(C_YEAR)。}//input:月16進(jìn)制//*********************************************************//PlaySpeakMonth(int MonthTemp) //*************月{ if(MonthTemp10) PlayRespond(MonthTemp+C_T00)。 else if(MonthTemp==10) PlayRespond(C_T10)。 else if(MonthTemp==11) PlayRespond(C_T11)。 else if(MonthTemp==12) PlayRespond(C_T12)。 PlayRespond(C_MONTH)。 }//input:日 16進(jìn)制//*********************************************************//PlaySpeakDay(int DayTemp) //*************日{(diào) if((DayTemp/10) 1) PlayRespond(DayTemp/10+C_T00)。 //十位1報(bào) if((DayTemp/10)0) PlayRespond(C_T10)。 //報(bào)十,十位為1不報(bào)1 if((DayTemp%10)!= 0) PlayRespond(DayTemp%10+C_T00)。 PlayRespond(C_DAY)。}//input: 時(shí)16進(jìn)制//*********************************************************// PlaySpeakHour(int DayTemp) //*************時(shí){ if(DayTemp=0 amp。amp。 DayTemp=7) { PlayRespond(C_LINGCHEN)。 //1—7 凌晨 if(DayTemp==2) PlayRespond(C_S02)。 //兩 else PlayRespond(DayTemp+C_T00)。 } else if(DayTemp=8 amp。amp。 DayTemp=12) { PlayRespond(C_NOON)。 //812 上午 switch(DayTemp) { case 10:PlayRespond(C_T10)。 break。 //十點(diǎn) case 11:PlayRespond(C_T11)。 break。 //十一點(diǎn) case 12:PlayRespond(C_T12)。 break。 //十二點(diǎn) default: PlayRespond(DayTemp+C_T00)。break。 } } else if(DayTemp=13 amp。amp。 DayTemp=19) { PlayRespond(C_AFTERNOON)。 //1319 下午17 if(DayTemp==14) PlayRespond(C_S02)。 //兩 else PlayRespond(DayTemp12+C_T00)。 } else if(DayTemp=20 amp。amp。 DayTemp=24) { PlayRespond(C_NIGHT)。 //2024 晚上812 switch(DayTemp) { case 22:PlayRespond(C_T10)。 break。 //十點(diǎn) case 23:PlayRespond(C_T11)。 break。 //十一點(diǎn) case 24:PlayRespond(C_T12)。 break。 //十二點(diǎn) default: PlayRespond(DayTemp12+C_T00)。break。 } } PlayRespond(C_DIAN)。 //點(diǎn)}//input: 分 16進(jìn)制//*********************************************************//PlaySpeakMinute(int MinTemp) //*************分{ if(MinTemp==0) PlayRespond(C_ZHENG)。 //正點(diǎn) else { if((MinTemp/10)1) PlayRespond(MinTemp/10+C_T00)。 //分的十位 if((MinTemp/10) 0) PlayRespond(C_T10)。 //分的十位大于1報(bào),為1不報(bào)1 if((MinTemp%10)!=0) PlayRespond(MinTemp%10+C_T00)。 //分的個(gè)位不為0則報(bào) PlayRespond(C_MIN)。 //分 } } //input:秒16進(jìn)制//*********************************************************//PlaySpeakSecond(int SecondTemp) //*************秒{ if(SecondTemp == 0) PlayRespond(SecondTemp + C_T00)。 //0秒 if((SecondTemp/10)1) PlayRespond(SecondTemp/10+C_T00)。 //秒的十位大于1報(bào),為1只報(bào)十 if((SecondTemp/10) 0) PlayRespond(C_T10)。 if((SecondTemp%10)!= 0) PlayRespond(SecondTemp%10+C_T00)。 PlayRespond(C_SECOND)。}//********************報(bào)時(shí)*********************************////input:1 報(bào)年、月、日// 0 報(bào)時(shí)、分、秒//*********************************************************//int SpeakDate(uint temp_year,uint temp_month,uint temp_day){ PlaySpeakYear(temp_year)。 //*************年 PlaySpeakMonth(temp_month)。 //*************月 PlaySpeakDay(temp_day)。 //*************日 }void SpeakTime(uint hour,uint mini,uint sec) { PlayRespond(C_BELL)。 //報(bào)時(shí)聲 PlayRespond(C_NOW)。 //現(xiàn)在時(shí)刻 PlaySpeakHour(hour)。 //*************時(shí) PlaySpeakMinute(mini)。 //*************分 PlaySpeakSecond(sec)。 //*************秒 }
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1