上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页
摘要: 重载函数 出现在相同作用域中的两个函数,如果具有相同的名字而形参表不同,则称为重载函数。 使用某种程序设计语言编写过算术表达式的程序员都肯定使用过重载函数。表达式 1 + 3 调用了针对整型操作数加法操作符,而表达式 1.0 + 3.0 调用了另外一个专门处理浮点操作数的不同的加法操作。根据操作数的 阅读全文
posted @ 2016-02-18 13:51 _No.47 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 举一个例子: class Sales_item { public: // operations on Sales_item objects double avg_price() const; bool same_isbn(const Sales_item &rhs) const { return i 阅读全文
posted @ 2016-02-18 10:48 _No.47 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 有一个返回两个 string 形参中较短的字符串的函数: const string &shorterString(const string &s1, const string &s2) { return s1.size() < s2.size() ? s1 : s2; } 为这样的小操作定义一个函数 阅读全文
posted @ 2016-02-17 18:38 _No.47 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 形参的初始化与变量的初始化一样:如果形参具有非引用类型,则复制实参的值,如果形参为引用类型,则它只是实参的别名。 非引用形参: 普通的非引用类型的参数通过复制对应的实参实现初始化。当用实参副本初始化形参时,函数并没有访问调用所传递的实参本身,因此不会修改实参的值。 while 循环体虽然修改了 v1 阅读全文
posted @ 2016-02-17 16:37 _No.47 阅读(1096) 评论(0) 推荐(0) 编辑
摘要: security descriptor A structure and associated data that contains the security information for a securable object. A security descriptor identifies th 阅读全文
posted @ 2016-01-29 18:16 _No.47 阅读(1140) 评论(0) 推荐(0) 编辑
摘要: 在StackOverflow中看到一个提问“what's the difference between DLL's and LIB's?” 有如下回复值得参考: 回复一: 回复二: There are static libraries (LIB) and dynamic libraries (DLL 阅读全文
posted @ 2016-01-28 15:04 _No.47 阅读(397) 评论(0) 推荐(0) 编辑
摘要: VS的工程属性中我们常会设置Character Set: 为了支持Unicode编码,需要多字节与宽字节之间的相互转换。这里涉及两个函数: int WideCharToMultiByte( _In_ UINT CodePage, _In_ DWORD dwFlags, _In_ LPCWSTR lp 阅读全文
posted @ 2016-01-27 19:43 _No.47 阅读(809) 评论(0) 推荐(0) 编辑
摘要: Article 1:Loading Win32/64 DLLs "manually" without LoadLibrary() The most important steps of DLL loading are: Mapping or loading the DLL into memory. 阅读全文
posted @ 2016-01-27 18:06 _No.47 阅读(2042) 评论(0) 推荐(0) 编辑
摘要: 数组名为何物? int main() { int number[] = { 1, 2, 3, 4, 5 }; int *pnumber = number; cout << sizeof(number) << endl; cout << sizeof(pnumber) << endl; system( 阅读全文
posted @ 2016-01-26 17:43 _No.47 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 六、动态数据交换(Dynamic Data Exchange)动态数据交换(DDE)是使用共享内存在应用程序之间进行数据交换的一种进程间通信形式。应用程序可以使用DDE进行一次性数据传输,也可以当出现新数据时,通过发送更新值在应用程序间动态交换数据。DDE和剪贴板一样既支持标准数据格式(如文本、位图... 阅读全文
posted @ 2016-01-25 18:40 _No.47 阅读(421) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页