C 編寫谷歌日曆

2022-08-19 06:06:13 字數 3562 閱讀 8220

#include#include

using

namespace

std;

void main() //

程式從這裡開始執行

else

fout

<< "

description:

"

<< "

sequence:0

"

<< "

status:confirmed

"

<< "

summary:大學英語

"

<< "

transp:opaque

"

<< "

end:vevent

"<}

//輸入數字邏輯課表

for (int t = 0; t < 2; t++)

else

fout

<< "

description:

"

<< "

sequence:0

"

<< "

status:confirmed

"

<< "

summary:數字邏輯

"

<< "

transp:opaque

"

<< "

end:vevent

"<}

//輸入高等數學課表

day = 5

;

for (int t = 0; t < 3; t++)

else

if (t == 1

)

else

if (t == 2

)

fout

<< "

description:

"

<< "

sequence:0

"

<< "

status:confirmed

"

<< "

summary:高等數學

"

<< "

transp:opaque

"

<< "

end:vevent

"<}

//輸入電工與電子技術課表

day = 6

;

for (int t = 0; t < 2; t++)

else

fout

<< "

description:

"

<< "

sequence:0

"

<< "

status:confirmed

"

<< "

summary:電工與電子技術

"

<< "

transp:opaque

"

<< "

end:vevent

"<}

//輸入離散數學課表

day = 3

;

for (int t = 0; t < 2; t++)

else

fout

<< "

description:

"

<< "

sequence:0

"

<< "

status:confirmed

"

<< "

summary:離散數學

"

<< "

transp:opaque

"

<< "

end:vevent

"<}

//輸入地球科學概論課表

day = 6

;

for (int t = 0; t < 2; t++)

else

fout

<< "

description:

"

<< "

sequence:0

"

<< "

status:confirmed

"

<< "

summary:地球科學概論

"

<< "

transp:opaque

"

<< "

end:vevent

"<}

//輸入體育課課表

day = 7

; fout

<< "

begin:vevent

"

<< "

dtstart:2018030

"<< day << "

t020500z

"

<< "

dtend:2018030

"<< day << "

t034000z

"

<< "

rrule:freq=weekly;until=20180704t155959z

"

<< "

location:北區體育館/袁春梅

"

<< "

description:

"

<< "

sequence:0

"

<< "

status:confirmed

"

<< "

summary:桌球初級班

"

<< "

transp:opaque

"

<< "

end:vevent

"

day = 16

;

for (int t = 0; t < 2; t++)

else

fout

<< "

description:

"

<< "

sequence:0

"

<< "

status:confirmed

"

<< "

summary:高階軟體程式設計技術

"

<< "

transp:opaque

"

<< "

end:vevent

"<}

fout

<< "

end:vcalendar";

fout.close();

return

;}

C語言 編寫乙個日曆

題目 列印乙個月份的日曆。分析 首先列印乙個月份的日曆,要設定乙個基準年,並且要知道這一年的一月一號是週幾 求得當年的一月一號是週幾 在求得當月的第一天是週幾。define crt secure no warnings 1 include include 某個月的日曆 int months 2 13...

LocalDate編寫日曆程式

構造乙個表示當前日期的物件 構造乙個表示給定日期的物件 的到當前日期的年 月和日 得到當前日期是星期幾,作為dayofweek類的乙個例項返回。呼叫 getvalue 來得到 1 7 之間的乙個數,表示這是星期幾,1表示星期一,7表示星期日 生成當前日期之後或之前n天的日期 使用 localdate...

HTML時鐘日曆外掛程式編寫

最終實現的效果如下,可進入展示頁面檢視 展示頁面 位於映像標題右側顯示,實時獲取當前時間,各指標隨時間轉動 2019年11月20日div time clock 0時0分0秒div time weekday 周一div div clock clock clock hour clock minute c...