上一页 1 2 3 4 5 6 7 ··· 16 下一页
摘要: 观察者模式: 1 #ifndef __UIDELEGATE_H__ 2 #define __UIDELEGATE_H__ 3 4 #pragma once 5 6 namespace DuiLib { 7 8 class UILIB_API CDelegateBase 9 {10 public:11 CDelegateBase(void* pObject, void* pFn);12 CDelegateBase(const CDelegateBase& rhs);13 virtual ~CDelegateBase();14 bool Equals... 阅读全文
posted @ 2012-10-15 22:15 可乐爱上了雪碧 阅读(306) 评论(0) 推荐(1) 编辑
摘要: 代码: 1 long __cdecl atol( 2 const char *nptr 3 ) 4 { 5 int c; /* current char */ 6 long total; /* current total */ 7 int sign; /* if '-', then negative, otherwise positive */ 8 9 /* skip whitespace */10 while ( isspace((int)(unsigned char)*nptr) )11 ++nptr;12 13 c = (int)(unsigned ... 阅读全文
posted @ 2012-10-15 13:43 可乐爱上了雪碧 阅读(1258) 评论(0) 推荐(0) 编辑
摘要: 要过年了,发个年终总结贴,只是个人理解,不包正确哈。本贴涉及的硬件平台是X86,如果是其它平台,嘻嘻,不保证能一一对号入座,但是举一反三,我想是完全可行的。一、概念物理地址(physical address)用于内存芯片级的单元寻址,与处理器和CPU连接的地址总线相对应。——这个概念应该是这几个概念中最好理解的一个,但是值得一提的是,虽然可以直接把物理地址理解成插在机器上那根内存本身,把内存看成一个从0字节一直到最大空量逐字节的编号的大数组,然后把这个数组叫做物理地址,但是事实上,这只是一个硬件提供给软件的抽像,内存的寻址方式并不是这样。所以,说它是“与地址总线相对应”,是更贴切一些,不过抛开 阅读全文
posted @ 2012-10-12 13:29 可乐爱上了雪碧 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 3 using namespace std; 4 5 struct Node 6 { 7 Node(int v):value(v),left(NULL), right(NULL){} 8 struct Node * left; 9 struct Node * right;10 int value;11 };12 int length;13 Node * BuildTree(int * preorder, int * inorder, int * pos, int start, int end)14 {15... 阅读全文
posted @ 2012-10-08 19:41 可乐爱上了雪碧 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Excerpted fromhttp://www.more.net/technical/netserv/tcpip/dhcp.htmlDynamic Host Configuration Protocol (DHCP) ServicesIntroductionWith the rapid growth of TCP/IP (Transmission Control Protocol/Internet Protocol, the common transmission protocol for communicating over the Internet) networks, tools ar 阅读全文
posted @ 2012-09-29 17:43 可乐爱上了雪碧 阅读(504) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 16 下一页