`
sylinx_yqg
  • 浏览: 140166 次
  • 性别: Icon_minigender_1
  • 来自: 福建 漳州
社区版块
存档分类
最新评论
文章列表
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">/**********************************N皇后的求解,这里求8皇后 颜清国 06.05.02***********************************/#include "stdlib.h"#include "stdio.h"#define LEN siz ...
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">/************************************************************************** 文件名:HFtree.c** 文件描述:本程序给出哈夫曼树的链式构造法和哈夫曼的编码* 在turboc 2.0 调试通过,在其他编译环境下请把* gotoxy和getch两个函数重写** 创建人: 颜清国 2006年5 ...
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">/************************************************************************** 文件名:treeexpression.c** 文件描述:本程序给出表达式树的构造算法* 在turboc 2.0 调试通过,注意只能输入个位数,且没有加上* 对括号的处理,读者可以自己将其加上去* 创建人: 颜清国 20 ...
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">include "stdio.h"#include "stdlib.h"#include "conio.h"#include "string.h"#define MAX 20/************************************** 定义树的结构体********************************* ...
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">/***************************************************************** * 文件名:Rstree.c * * 文件描述:树相关操作的递归算法实现 * * 创建人:颜清国 2006年4月15日 * * * 修改记录 ...
/***************************************采用简单搜索,搜索文件包含的字串写者:颜清国 06.3.27****************************************/#include"io.h"#include "stdio.h"#include "string.h"/*查找文件中的字串*/int index(char *filename,char *str){ FILE*fp; int flag=0,i=0,len=strlen(str); if((fp=fopen(filena ...
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">用回溯法链表求解迷宫问题,并加上完整的人物演示过程 (按一键小人开始搜索)创建人: 颜清国 2006年3月18日(下载源码(点击右键,目标另存为))说明: 程序中按照上-右-下-左搜索,运行效果如图#include"graphics.h"#include"stdio.h"#include"dos.h"#define LENGTH sizeof(stru ...
/**************************************** 栈的一个应用表达式求值 写者:颜清国 06.3.20****************************************/#include "stdio.h"#include "string.h"#define MAX 100typedef struct sstack{ char str[MAX]; int top;}stack;/*入栈操作*/void push(stack * ...
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">/**********************************************线性表的应用----多项式操作BY YQG.06.3.9 (网页排版较乱,可下载源码(点击右键,目标另存为))(注:可将输入转为多项式整体输入)***********************************************/#include "stdio.h" #include &q ...
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">/**********************************************链表的操作 BY YQG.06.3.6***********************************************/#include"stdio.h"#include"stdlib.h"#include"string.h"#ifndef FA ...
/**********************************************顺序表的操作BY YQG.06.3.6 ***********************************************/#include"stdio.h"#include"stdlib.h"#define LENG sizeof(struct List)/*注意这里不能为sizeof(sqlist*),其为指针类型。否则会弹框*/#ifndef false#define false 0#endif#ifndef true#define true 1 ...
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">在SDK中,经常要创建一个对话框,以下是一个创建对话框的代码:#include "resource.h"#include "windows.h"BOOL _stdcall DlgProc(HWND,UINT,WPARAM,LPARAM);int _stdcall WinMain(HINSTANCE hInstance,HINSTANCE,LPSTR,int){ Dia ...
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">在SDK中经常会响应许多消息,这样大量代码在case:中,格式比较难看. 以下是消息分解的例子.#include <windowsx.h> 消息分解,在<windowsx.h>中定义有宏HANDLE_MSG,例如: HANDLE_MSG(hWnd,WM_COMMAND,command) HANDLE_MSG(hWnd,WM_CREATE,create) HANDLE_MSG(hW ...
<meta http-equiv="Content-Type" content="text/html;charset=gb2312">所谓的“托盘”,在Windows系统界面中,指的就是下面任务条右侧,有系统时间等等的标志的那一部分。二、托盘编程相关函数   WINSHELLAPI BOOL WINAPI Shell_Notif ...
#include <windowsx.h>void main(){HKEY hRoot=HKEY_LOCAL_MACHINE;char*szsubkey="Software\\Microsoft\\Windows\\CurrentVersion\\Run";//启动自动运行的根键HKEY hKey;char szModule[MAX_PATH];DWORD dwDisposition=REG_OPENED_EXISTING_KEY;//如果不存在就创建long iRet=RegCreateKeyEx(hRoot,szsubkey,0,NULL,REG_OPTION ...
Global site tag (gtag.js) - Google Analytics