天天打开电脑就看到那张桌面壁纸看腻了?手动更换壁纸太麻烦?来来来,有了它啥也不是问题。
实现原理:首先获取系统日期,然后查表查看今天是什么节气,更新壁纸。
开发工具:visual c++ 6.0
图片包请查看我发布的资源
注:需将编译生成的exe文件放到自动启动的文件夹。
#include <stdio.h>
#include <Windows.h>
#include<time.h>
#include <stdio.h>
unsigned char jieqi_tab[100][24]={
{
0x06,0x0f,0x04,0x0d,0x05,0x0e,0x04,0x0e,0x05,0x0f,0x05,0x0f,0x07,0x10,0x07,0x17,0x07,0x17,0x08,0x17,0x07,0x10,0x07,0x0f,},//2000
{
0x05,0x0e,0x04,0x0c,0x05,0x0e,0x05,0x0e,0x05,0x0f,0x05,0x0f,0x07,0x17,0x07,0x17,0x07,0x17,0x08,0x17,0x07,0x10,0x07,0x10,},//2001
{
0x05,0x0e,0x04,0x0d,0x06,0x0f,0x05,0x0e,0x06,0x0f,0x06,0x0f,0x07,0x17,0x08,0x17,0x08,0x17,0x08,0x17,0x07,0x10,0x07,0x10,},//2002
{
0x06,0x0e,0x04,0x0d,0x06,0x0f,0x05,0x0e,0x06,0x0f,0x06,0x10,0x07,0x17,0x08,0x17,0x08,0x17,0x09,0x22,0x08,0x17,0x07,0x10,},//2003
{
0x06,0x0f,0x04,0x0d,0x05,0x0e,0x04,0x0e,0x05,0x0f,0x05,0x0f,0x07,0x10,0x07,0x17,0x07,0x17,0x08,0x17,0x07,0x10,0x07,0x0f,},//2004
{
0x05,0x0e,0x04,0x0c,0x05,0x0e,0x05,0x0e,0x05,0x0f,0x05,0x0f,0x07,0x17,0x07,0x17,0x07,0x17,0x08,0x17,0x07,0x10,0x07,0x10,},//2005
{
0x05,0x0e,0x04,0x0d,0x06,0x0f,0x05,0x0e,0x05,0x0f,0x06,0x0f,0x07,0x17,0x07,0x17,0x08,0x17,0x08,0x17,0x07,0x10,0x07,0x10,},//2006
{
0x06,0x0e,0x04,0x0d,0x06,0x0f,0x05,0x0e,0x06,0x0f,0x06,0x10,0x07,0x17,0x08,0x17,0x08,0x17,0x09,0x22,0x08,0x17,0x07,0x10,},//2007
{
0x06,0x0f,0x04,0x0d,0x05,0x0e,0x04,0x0e,0x05,0x0f,0x05,0x0f,0x07,0x10,0x07,0x17,0x07,0x10,0x08,0x17,0x07,0x10,0x07,0x0f,},//2008
{
0x05,0x0e,0x04,0x0c,0x05,0x0e,0x04,0x0e,0x05,0x0f,0x05,0x0f,0x07,0x17,0x07,0x17,0x07,0x17,0x08,0x17,0x07,0x10,0x07,0x10,},//2009
{
0x05,0x0e,0x04,0x0d,0x06,0x0f,0x05,0x0e,0x05,0x0f,0x06,0x0f,0x07,0x17,0x07,0x17,0x08,0x17,0x08,0x17,0x07,0x10,0x07,0x10,},//2010
{
0x06,0x0e,0x04,0x0d,0x06,0x0f,0x05,0x0e,0x06,0x0f,0x06,0x10,0x07,0x17,0x08,0x17,0x08,0x17,0x08,0x22,0x08,0x17,0x07,0x10,},//2011
{
0x06,0x0f,0x04,0x0d,0x05,0x0e,0x04,0x0e,0x05,0x0e,0x05,0x0f,0x07,0x10,0x07,0x17,0x07,0x10,0x08,0x17,0x07,0x10,0x07,0x0f,},//2012
{
0x05,0x0e,0x04,0x0c,0x05,0x0e,0x04,0x0e,0x05,0x0f,0x05,0x0f,0x07,0x10,0x07,0x17,0x07,0x17,0x08,0x17,0x07,0x10,0x07,0x10,},//2013
{
0x05,0x0e,0x04,0x0d,0x06,0x0f,0x05,0x0e,0x05,0x0f,0x06,0x0f,0x07,0x17,0x07,0x17,0x08,0x17,0x08,0x17,0x07,0x10,0x07,0x10,},//2014
{
0x06,0x0e,0x04,0x0d,0x06,0x0f,0x05,0x0e,0x06,0x0f,0x06,0x10,0x07,0x17,0x08,0x17,0x08,0x17,0x08,0x22,0x08,0x10,0x07,0x10,},//2015
{
0x06,0x0e,0x04,0x0d,0x05,0x0e,0x04,0x0d,0x05,0x0e,0x05,0x0f,0x07,0x10,0x07,0x17,0x07,0x10,0x08,0x17,0x07,0x10,0x07,0x0f,},//2016
{
0x05,0x0e,0x03,0x0c,0x05,0x0e,0x04,0x0e,0x05,0x0f,0x05,0x0f,0x07,0x10,0x07,0x17,0x07,0x17,0x08,0x17,0x07,0x10,0x07,0x10,},//2017
{
0x05,0x0e,0x04,0x0d,0x05,0x0f,0x05,0x0e,0x05,0x0f,0x06,0x0f,0x07,0x17,0x07,0x17,0x08,0x17,0x08,0x17,0x07,0x10,0x07,0x10,},//2018
{
0x05,0x0e,0x04,0x0d,0x06,0x0f,0x05,0x0e,0x06,0x0f,0x06,0x0f,0x07,0x17,0x08,0x17,0x08,0x17,0x08,0x22,0x08,0x10,0x07,0x16,},//2019
{
0x06,0x14,0x04,0x13,0x05,0x14,0x04,0x13,0x05,0x14,0x05,0x15,0x06,0x16,0x07,0x16,0x07,0x16,0x08,0x17,0x07<