- 博客(22)
- 收藏
- 关注
链表法页框的分配和去配
采用链表的方法模拟分页式存储空间的分配和去配, MemManager.h#pragma once#define MAX_MEM_LEN 512class CMemManager{private: struct MemItem { struct MemItem* prior; struct MemItem* next; bool bFree; ...
2011-01-22 21:01:03
211
原创 关于模态对话框
对话框一般有模态和非模态之分一般通过DoModal出来的对话框就是模态对话框通过Create的对话框时非模态的 原以为模态对话框会将其调用线程阻塞,现在发现不是这样调用模态对话框的时候只是此处代码不再向下进行,直到关掉对话框才会继续下面的指令在这个时候调出模态对话框的线程还能响应其他消息...
2010-10-13 19:06:18
180
makefile
使用:make (生成目标文件)make clean(清理中间文件)# target hello.exeOBJS = hello.o # a macroCC = g++ # the compilerDEBUG = -gCFLAG = -Wall -c $(DEBUG) # compile to .objLFLAG = -Wall $(DEBUG) # link to ...
2010-03-25 21:33:42
124
函数参数:可变参数
C/C++语言的函数可以定义可变参数,例子如下:#include <windows.h>#include <cstdio>#include <tchar.h>void DebugMsg(LPCTSTR pszFormat, ...);int main(){ DebugMsg(_T("%s\n"), _T("hello"));...
2010-03-22 21:42:28
125
VS 静态库的编写
Visual Studio 下静态库的编写使用VS建立 控制台--Static library(静态库) 项目 libTest.h 头文件#ifndef GUARD_LIBTEST_H#define GUARD_LIBTEST_H#ifdef __cplusplusextern "C" {#endifint myadd(int a, int b); ...
2010-03-11 19:41:00
214
python 使用
python操作mssqlhttp://pymssql.sourceforge.net/index.phphttp://blog.youkuaiyun.com/ChumpKlutz/archive/2006/10/03/1319994.aspx
2010-03-10 19:27:52
98
sql 行专列 列转行 普通行列转换
/* 标题:普通行列转换(version 2.0) 作者:爱新觉罗.毓华 时间:2008-03-09 地点:广东深圳 说明:普通行列转换(version 1.0)仅针对sql server 2000提供静态和动态写法,version 2.0增加sql server 2005的有关写法。 问题:假设有张学生成绩表(tb)如下: 姓名 课程 分数 张三 语文...
2010-02-24 20:34:51
109
网文收藏
Neat Stuff to Do in List Controls Using Custom Drawhttp://www.codeproject.com/KB/list/lvcustomdraw.aspx ado_database的专栏http://blog.youkuaiyun.com/ado_database Catch All Bugs with BugTrap!http:...
2010-02-05 19:09:32
130
原创 铁路轨道边的扳道工
思考1:大局上面仍然有另一个大局思考2:公平永远有不同角度的公平思考3:这个游戏只有站在切换器旁边的人可以决定结果有一群小朋友在外面玩,而那个地方有两条铁轨,一条还在使用,一条已经停用只有一个小朋友选择在停用的铁轨上玩其它的小朋友全都在仍在使用的铁轨上玩很不巧的,火车来了(而且理所当然的往上面有很多小孩的,仍在使用的铁轨上行驶)而你正站在铁轨的切换器旁,因此你能让火车转往停用的铁轨这样的话你就可以...
2010-01-11 20:10:42
239
原创 C# xmlhttp
转自:http://www.cnblogs.com/shaofh/archive/2007/07/27/833462.html //引入com microsoft.xml.3.0 //using MSXML2; public void GetCon(String Url) { // string vs = ""; // try...
2010-01-06 19:41:03
480
原创 C++: split 字符串分割函数
源自ACPP的字符串分割函数 vector<string> split(const std::string &s){ vector<string> vec_ret; typedef string::size_type string_size; string_size i = 0; while (i != s.size()){ ...
2009-12-14 20:53:16
577
原创 Accelerated C++ 第三章要点
Accelerated C++ 第三章要点 Local variables are default-initialized if they are defined without an explicit initializer. Default-initialization of a built-in type means that the value is undefined. Unde...
2009-11-10 18:38:56
149
原创 C C++ 字符串去空格函数
----------------------------------------C---------------------------------------#include <stdio.h>#include <string.h>#include <ctype.h>char * trim(char * ptr){ int s...
2009-11-09 19:26:54
772
原创 程序员最好收藏的若干网站
程序员最好收藏的若干网站 收藏 http://www.gotapi.com/ 语言:英语 简介:HTML,CSS,XPATH,XSL,JAVASCRIPT等API的查询网站。http://www.w3schools.com/ 语言:英语 简介:W3C制定的标准诸如XML,HTML,XSL等等的在线学习教程。http://www.xml.org.cn/ 语言:中文 简介:可以说是XML的中国官方网...
2009-10-28 20:09:54
138
原创 SQL Server 2008 一直要求重启的解决
前几天要安装SQL Server 2008,安装过程中总是要求重启,重启多次,总是没有结果上网Google,在msdn找到了方法,于是记录之。 找到注册表的 "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager" 并将其下面的"PendingFileRenameOperations" 的值删掉即可 ...
2009-10-27 20:11:53
806
原创 为控件添加Tooltip
/*************************************************Function: CreateToolTipDescription: 在父类容器中为子控件添加TooltipInput: int toolID 控件ID HWND hDlg ...
2009-09-15 18:46:12
423
原创 C++沉思录之代理
此文记录《C++沉思录》 一书中的代理章节中的代码。/******************************************************************************Module: surrogate.hPurpose: 代理是为了解决继承和容器问题而提出的。容器只能容纳同种类型的对象。 而在继承层次里面有多种变量类型,...
2009-09-02 20:09:48
122
原创 Windows Message Handling--Subclassing 子类化
Subclassing is a technique that allows an application to intercept and process messages sent or posted to a particular window before the window has a chance to process them. This is typically done by ...
2009-08-24 19:15:34
114
原创 Accelerated C++ 笔记
Accelerated C++ Practical Programming by Example 的学习笔记这是Andrew Koenig and Barbara E. Moo合著的一本C++入门书
2009-06-17 14:10:35
140
原创 XML 解析实例
java 解析xml实例import java.io.*; //Java基础包,包含各种IO操作 import java.util.*; //Java基础包,包含各种标准数据结构操作 import javax.xml.parsers.*; //XML解析器接口 import org.w3c.dom.*; //XML的DOM实现 import org.apache.crims...
2009-06-15 11:10:48
151
原创 linux下处理windows常见文件
linux下处理windows格式的文件 1、chm文件chmseeUnix/Linux 下的 HTML Help(CHM) 阅读工具http://chmsee.gro.clinux.org CHM 阅读器压缩 HTML 帮助文档阅读器
2009-06-13 21:34:59
148
原创 经典学习资料
Applied Cryptography By Bruce SchneierArt Of Assembly By Randall HydeBorland C++ Builder 实用培训教程 C 与 C++ 中的异常处理C 语言编程手册 C++ Builder 4技术内幕 C++ Builder高级编程技术 C++ In ActionC++ Primer C++ Primer PlusC+...
2009-04-15 21:48:56
121
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人