摘要: https://developers.google.com/native-client/sdk/download?hl=zh-CNDownload the Native Client SDKFollow the steps below to download and install the SDK:Prerequisites:Make sure you have Python 2.6 or 2.7 installed, and that the Python executable is in your path.On Mac/Linux, Python is probably preinsta 阅读全文
posted @ 2013-03-15 17:43 runner42.195 阅读(1243) 评论(0) 推荐(0)
摘要: C++复制构造函数 阅读全文
posted @ 2013-01-14 13:19 runner42.195 阅读(339) 评论(0) 推荐(0)
摘要: 构造函数初始化列表tips构造函数初始化列表是许多相当有经验的C++程序员都没有掌握的一个特性一、构造函数初始化列表的重要功能a)构造函数初始化列表示例如下:CHost::CHost(const string &url): m_url(url), m_ulFailCnt(0){ .....}b)普通的构造函数内部初始化如下:CHost::CHost(const string &url){ m_url = url; m_ulFailCnt = 0; ....}构造函数初始化列表其实有一个重要的功能----对变量是对象进行构造函数的初始化对于a)中,m_url在构造函数的函... 阅读全文
posted @ 2013-01-07 11:50 runner42.195 阅读(194) 评论(0) 推荐(0)
摘要: C++ const使用情况总结:1、const 用户指针的两种情况1) 指针*符号在const右:char const *szValue = "V1R2B120";const char *szValue = "V1R2B120";可以修改指针szValue,不能修改指针内容*szValue;2) 指针*符号在const左:char* const szValue = szInput;不能修改指针szValue,可以修改指针内容*szValue;2、const限定函数的传递值参数void FunStr(const char* szInput);在函数Fun中 阅读全文
posted @ 2013-01-07 11:49 runner42.195 阅读(152) 评论(0) 推荐(0)