计算星期几的C代码
来源: 作者: 时间:2008-05-05 阅读:
计算星期几的C代码
static UCHAR ClkDay; /* Counters for local
DATE */
static UCHAR ClkDOW; /* Day of week (0 is
Sunday) */
static UCHAR ClkMonth;
static UINT ClkYear;
typedef struct clk_month
{
UCHAR MonthDays; /* Number of days in each
month */
char *MonthName; /* Name of the
month */
UCHAR MonthVal; /* Value used to compute day of the
week */
} CLK_MONTH;
static CLK_MONTH code ClkMonthTbl[] = { /* MONTHS
TABLE */
{0, "", 0}, /* Invalid
month */
{31, "January ", 6}, /*
January */
{28, "February ", 2}, /* February (note leap years are handled
static UCHAR ClkDay; /* Counters for local
DATE */
static UCHAR ClkDOW; /* Day of week (0 is
Sunday) */
static UCHAR ClkMonth;
static UINT ClkYear;
typedef struct clk_month
{
UCHAR MonthDays; /* Number of days in each
month */
char *MonthName; /* Name of the
month */
UCHAR MonthVal; /* Value used to compute day of the
week */
} CLK_MONTH;
static CLK_MONTH code ClkMonthTbl[] = { /* MONTHS
TABLE */
{0, "", 0}, /* Invalid
month */
{31, "January ", 6}, /*
January */
{28, "February ", 2}, /* February (note leap years are handled
将计算星期几的C代码
上一篇:串口中断服务函数集
下一篇:24C02的C控制程序
最新评论:共有 0 位网友发表了评论 查看所有评论
机电专业相关文章
赞助商链接
最新推荐文章
最新热门文章
Hot 11
