代码改变世界

阅读排行榜

c++ template(7-1)模板参数声明

2013-03-14 14:00 by Clingingboy, 551 阅读, 收藏,
摘要: 一.联合体可以使用模板 template <typename T> union AllocChunk { T object; unsigned char bytes[sizeof(T)]; }; 二.函数默认缺省调用实参template <typename T> void report_top (Stack<T> const&, int number = 10); temp... 阅读全文

effective C++ 第五章

2011-11-20 15:57 by Clingingboy, 551 阅读, 收藏,
摘要: 第五章:实现 条款 27:尽量少做转型动作 1.转换一个explicit构造函数 class Widget {public: explicit Widget(int size); ...};void doSomeWork(const Widget& w);doSomeWork(Widget(15)); // create Widget ... 阅读全文

Visual C++ 2011-5-24

2011-05-24 20:21 by Clingingboy, 548 阅读, 收藏,
摘要: 一.公共对话框 文档很详细 http://msdn.microsoft.com/en-us/library/ms646954(VS.85).aspx 二.获取操作系统版本 OSVERSIONINFO... 阅读全文

Visual c++ 2011-4-19

2011-04-20 21:18 by Clingingboy, 547 阅读, 收藏,
摘要: 一.SEH(C++异常处理机制) 参考: http://www.cppblog.com/fwxjj/archive/2008/01/25/41914.html http://www.cppblog.... 阅读全文

魅族m8开发 step by step(2)(hello world)

2009-11-14 23:27 by Clingingboy, 546 阅读, 收藏,
摘要: 接上篇,每个程序都会有MessageBox,MZFC也是如此,但进行的美化,其函数名为MzMessageBoxEx 一.MZFC的新MessageBox(MzMessageBoxEx) /*** @brief提示对话框* @param hWnd [in] 窗口句柄* @param content [in] 提示的内容* @param title [in] 标题(目前设置标题是无效的)* @para... 阅读全文
上一页 1 ··· 105 106 107 108 109 110 111 112 113 ··· 131 下一页