摘要:
观察者模式: 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... 阅读全文
摘要:
代码: 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 ... 阅读全文