2014年3月27日

【Windows核心编程】VirtualAlloc 例子

摘要: 1 // VirtualAlloc.cpp : 定义控制台应用程序的入口点。 2 // 3 #include "stdafx.h" 4 #include 5 #include 6 #include 7 using namespace std; 8 9 #ifdef UNICODE10 #define PRINT wcout11 #else12 #define PRINT cout13 #endif14 15 int _tmain(int argc, _TCHAR* argv[])16 {17 SIZE_T sizeOfLargePage = GetLargePageMin. 阅读全文

posted @ 2014-03-27 00:35 崔好好 阅读(1896) 评论(0) 推荐(0)

【线性表】动态分配空间的实现

摘要: 实现了一个简易的动态分配内存的线性表结构,实现了插入、删除、重载赋值运算符、拷贝构造函数(有bug,编译不过去) 1 2 #ifndef NULL 3 #define NULL 0 4 #endif 5 6 template 7 class CSQList 8 { 9 public: 10 CSQList(); //构造函数 11 CSQList(const CSQList& sqList); //拷贝构造函数 12 CSQList& operator=(... 阅读全文

posted @ 2014-03-27 00:04 崔好好 阅读(855) 评论(0) 推荐(0)

导航