大约有 3,000 项符合查询结果(耗时:0.0063秒) [XML]

https://www.tsingfun.com/it/cpp/1435.html 

std::find,std::find_if使用小结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ind_if函数的第三个参数,请查阅STL手册)。 find_if函数的定义: template<class InputIterator, class Predicate> InputIterator find_if(InputIterator _First, InputIterator _Last, Predicate _Pred); Parameters _First An input iterator addressing the position of the first element...
https://www.tsingfun.com/it/cpp/1483.html 

stdbool.h C99标准杂谈 - C/C++ - 清泛网 - 专注C/C++及内核技术

...准中引入了头文件 stdbool.h,包含了四个用于布尔型的预定义宏: #define true 1 #define false 0 #define bool _Bool typdef int _Bool 但是很遗憾,Visual C++不支持C99,至少现在来看是没这个计划(参见http://en.wikipedia.org/wiki/C99)。所以stdbool.h就...
https://www.tsingfun.com/it/cpp/1494.html 

std::vector排序 - C/C++ - 清泛网 - 专注C/C++及内核技术

....begin(), vecTest.end()) 默认升序。 其他情况可能就需要自定义排序函数了: bool SortByM1( const Test &v1, const Test &v2) //注意:本函数的参数的类型一定要与vector中元素的类型一致 { return v1.member1 < v2.member1;//升序排列 } .... std::...
https://www.tsingfun.com/it/cpp/1570.html 

一款IP:端口监控工具 服务器端口监控工具[附源码] - C/C++ - 清泛网 - 专注...

...同时也可手动刷新。 支持连接异常报警(PC蜂鸣器、自定义wav文件)。 软件下载:https://www.tsingfun.com/down/soft/74.html 源码下载:TradeMonitor.zip 主要代码请参考:《mfc telnet 端口,代码实现、不调用telnet.exe》 表格采...
https://www.tsingfun.com/it/cpp/1585.html 

MFC中主窗口和子窗口的菜单问题,如何统一显示MDI主窗体菜单? - C/C++ - ...

...S(CMFCApplication1Doc), RUNTIME_CLASS(CChildFrame), // 自定义 MDI 子框架 RUNTIME_CLASS(CMFCApplication1View)); 运行效果: MDI 菜单
https://www.tsingfun.com/it/cpp/1586.html 

C++代码执行安装包静默安装 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ESS; //不可少,否则不会等待安装结束 (详见SHELLEXECUTEINFO定义: HANDLE hProcess; // out, valid when SEE_MASK_NOCLOSEPROCESS specified) // Ask for privileges elevation. sei.lpVerb = TEXT("runas"); // Create a Command Prompt from which y...
https://www.tsingfun.com/it/cpp/1902.html 

c++文件流基本用法(ifstream, ostream,fstream) - C/C++ - 清泛网 - 专注C/C++及内核技术

...out) //do an input or output here file.close(); } open函数的参数定义了文件的打开模式。总共有如下模式 ios::in 读 ios::out 写 ios::app 从文件末尾开始写 ios::binary 二进制模式 ios::nocreate 打开一个文件时,如果文件不存在,不创...
https://www.tsingfun.com/it/cpp/1918.html 

CListCtrl 如何设置单元格颜色? - C/C++ - 清泛网 - 专注C/C++及内核技术

...控件的OwerDraw属性为true,然后使用GDI画图函数进行各种自定义绘制。 拓展的类为CColorListCtrl,必需引入的代码:ColorListCtrl.zip(4个文件) 将源码引入工程,#include "ColorListCtrl.h",将CListCtrl换成CColorListCtrl,构造函数中指定CColor...
https://www.tsingfun.com/it/cpp/1962.html 

CListCtrl 行高设置,自定义行高 - C/C++ - 清泛网 - 专注C/C++及内核技术

CListCtrl 行高设置,自定义行高先看效果:主要步骤及代码剖析:MyListCtrl.h#pragma onceclass CMyListCtrl : public CListCtrl{public:CMyListCtrl(void);~CMyListC...先看效果: 主要步骤及代码剖析: MyListCtrl.h #pragma once class CMyListCtrl : public CList...
https://www.tsingfun.com/it/cpp/2041.html 

error C2804:binary \'operator +\' has too many parameters - C/C++ - 清泛网 - 专注C/C++及内核技术

...算术操作符、相等操作符、关系操作符和位操作符,最好定义为普通非成员函数。因此+应该重载为普通非成员函数。这里重载为成员函数时多了一个this形参,故对于+操作符来说,出现参数过多的错误。 即书写为: // header fi...