資源簡介
很早以前寫的一個50年的萬年歷以及24節氣程序,可以計算出現在距離最近的一個節氣已經過了幾天或者還差幾天。
代碼片段和文件信息
/**************************************************************************************************
Calendar?Function
Created?by?Victor?Zhu?@?about?year?2007.09
Modified?by?Victor?Zhu?@?2009.01.23
Version:?2.0
updated?@?2011.08.01
**************************************************************************************************/
#include?
#include?“Calendar.h“
#define?FIRSTYR?11 /*denotes?the?year?of?2011*/
/*15-SLB->?The?first?festivalday?of?the?month?15+MLB->?The?second?festivalday?of?the?month*/
static?const?BYTE?Festival_Day[40][12]?PROGMEM?=?{
0x95?0xB4?0x96?0xA5?0x96?0x97?0x88?0x78?0x78?0x79?0x78?0x87?//2011?
0x96?0xB4?0xA5?0xB5?0xA5?0xA6?0x87?0x88?0x87?0x78?0x87?0x86?//2012?
0xA5?0xB3?0xA5?0xB5?0xA6?0xA6?0x87?0x88
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3635??2011-12-19?14:42??MegaTimeV10.aps
?????文件????????325??2011-12-19?14:42??megatimev10.aws
?????文件??????21939??2011-12-19?14:42??MegaTimeV10.c
?????文件??????11712??2011-12-19?14:36??default\Calendar.o
?????文件???????2058??2011-12-19?14:36??default\dep\Calendar.o.d
?????文件???????2911??2011-12-19?14:41??default\dep\MegaTimeV10.o.d
?????文件???????1961??2011-12-19?14:41??default\Makefile
?????文件?????????13??2011-12-19?14:41??default\MegaTimeV10.eep
?????文件??????33132??2011-12-19?14:41??default\MegaTimeV10.elf
?????文件??????38301??2011-12-19?14:41??default\MegaTimeV10.hex
?????文件??????36844??2011-12-19?14:41??default\MegaTimeV10.o
?????文件???????9181??2011-12-19?14:36??Calendar.c
?????文件????????535??2011-08-01?14:05??Calendar.h
?????目錄??????????0??2011-12-19?13:37??default\dep
?????目錄??????????0??2011-12-19?14:41??default
-----------?---------??----------?-----??----
???????????????162547????????????????????15
- 上一篇:用MFC做的鏈表程序
- 下一篇:棧與四則混合運算的實現
評論
共有 條評論