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

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

C++ template中typename和class的区别 - C/C++ - 清泛网 - 专注C/C++及内核技术

...,你不得不使用typename。 1. 在声明 template parameters(模板参数)时,class 和 typename 是可互换的。 2. 用 typename 去标识 nested dependent type names(嵌套依赖类型名),在 base class lists(基类列表)中或在一个 member initialization list(成...
https://www.tsingfun.com/it/cpp/1435.html 

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

...if函数,并自己指定predicate function(即find_if函数的第三个参数,请查阅STL手册)。 find_if函数的定义: template<class InputIterator, class Predicate> InputIterator find_if(InputIterator _First, InputIterator _Last, Predicate _Pred); Parameters _First An input it...
https://www.tsingfun.com/it/cpp/1506.html 

std::vector find查找方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...下错误: error C3867: “std::vector<_Ty>::end”: 函数调用缺少参数列表;请使用“&std::vector<_Ty>::end”创建指向成员的指针vector find
https://www.tsingfun.com/it/cpp/1558.html 

MFC 设置控件字体,颜色,大小,粗体,下划线等 - C/C++ - 清泛网 - 专注C/...

...)GetDlgItem(IDC_EDIT1); pCombox->SetFont(f); //具体设置f 对象参数值 MFC 控件 设置
https://www.tsingfun.com/it/cpp/1902.html 

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

...|ios::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/2041.html 

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

...数,应该重载为普通非成员函数。 注意重载操作符的形参数目(包括成员函数的隐式 this 指针)与操作符的操作数数目相同。对称的操作符,如算术操作符、相等操作符、关系操作符和位操作符,最好定义为普通非成员函数。...
https://www.tsingfun.com/it/cpp/2103.html 

/usr/include/c++/4.9/bits/stl_iterator_base_types.h:165:53: error: ‘i...

...stance (InputIterator first, InputIterator last); 这个函数要求两个参数至少都满足InPut Iterator约束,y而age[0]为int类型,不满足这个约束,因此导致上面的错误信息. 这段代码的错误之处,在于std命名空间中的distance屏蔽了本地的distance函数,解...
https://www.tsingfun.com/it/cpp/2112.html 

MFC 获取并移动其他应用程序窗口的方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...者只要知道一个就可以定位到你想要的窗口上了,若两个参数都为NULL,则搜索所有启动的进程,这里,为了获取应用程序的窗口信息,可以使用Spy++(微软vs自带工具,没有的话请自行下载),这个软件很好用,可以获得窗口类...
https://www.tsingfun.com/it/cpp/2124.html 

MFC RoundRect、FillRect等函数如何设置颜色 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ct与CDC::FillRect类似,FillSolidRect只能使用固体色(由COLORREF参数决定)。但FillRect带有画刷,因此可以为矩形填充固体色、抖动色、阴影或使用调色板。FillRect通常比FillSolidRect慢。 所以我在想那为什么还要用FillRect呀,全用FillSolid...
https://www.tsingfun.com/it/cpp/2136.html 

C++ 通过主机名/域名获取IP - C/C++ - 清泛网 - 专注C/C++及内核技术

...zeof(name)) == 0) { //如果成功,将本地主机名存放入由name参数指定的缓冲区中 if((hostinfo = gethostbyname(name)) != NULL) { //这是获取主机,如果获得主机名成功的话,将返回一个指针,指向hostinfo,hostinfo为PHOSTENT型的变量。 ip ...