大约有 25,400 项符合查询结果(耗时:0.0304秒) [XML]

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

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

...种对数组、STL容器进行查找的方法。使用该函数,需 #include <algorithm>我们查找一个list中的数据,通常...STL的find,find_if函数提供了一种对数组、STL容器进行查找的方法。使用该函数,需添加 #include <algorithm> 我们查找一个vector...
https://www.tsingfun.com/it/cpp/1487.html 

warning C4996 - C/C++ - 清泛网 - 专注C/C++及内核技术

warning C4996warning C4996: '_vsnprintf': This function or variable may be unsafe. ......warning C4996: strcpy was declar...warning C4996: '_vsnprintf': This function or variable may be unsafe. ...... warning C4996: strcpy was declared deprecated 出现这样的警告,是因为VC2005之后的版...
https://www.tsingfun.com/it/cpp/1491.html 

c++ boost库 序列化与反序列化 - C/C++ - 清泛网 - 专注C/C++及内核技术

c++ boost库 序列化与反序列化1、定义类 结构体序列化函数:template <typename Archive>void serialize(Archive& ar, TOrder & obj, const unsigned int ver...1、定义类/结构体序列化函数: template <typename Archive> void serialize(Archive& ar, TOrder & obj, const unsign...
https://www.tsingfun.com/it/cpp/1519.html 

高效使用STL容器小tip - C/C++ - 清泛网 - 专注C/C++及内核技术

...是0,每次都浪费线性时间。 看下边的例子: while( c.size() != 0 ){……} while( ! c.empty() ){……} 这两种方式有区别吗?当然有区别,对于任一种类型的容器,应该使用 empty() 成员函数来判断是不是空,因为对于所有标准容器...
https://www.tsingfun.com/it/cpp/1530.html 

C++的内部类 - C/C++ - 清泛网 - 专注C/C++及内核技术

C++的内部类标准C:不能访问内部类的private成员。但编译器编译能通过且不报错。标准C:不能访问内部类的private成员。 但编译器编译能通过且不报错。C++ 内部类
https://www.tsingfun.com/it/cpp/1630.html 

error MSB6006: “cmd.exe”已退出,代码为 3 - C/C++ - 清泛网 - 专注C/C++及内核技术

error MSB6006: “cmd.exe”已退出,代码为 31>C: Program Files MSBuild Microsoft.Cpp v4.0 Microsoft.CppCommon.targets(151,5): error MSB6006: cmd.exe已退出,代码为 3。1>1...1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: “cmd.exe...
https://www.tsingfun.com/it/cpp/2040.html 

error C2780: \'void __cdecl std::sort(_RI,_RI,_Pr)\' : expects 3 argum...

error C2780: 'void __cdecl std::sort(_RI,_RI,_Pr)' : expects 3 arguments - 2 providedprog7.cpp(8) :error C2780:'void __cdecl std::sort(_RI,_RI,_Pr)' : expects 3 arguments - 2 provided C: Pr...prog7.cpp(8) : error C2780: 'void __cdecl std::sort(_RI,_RI,_Pr)' : expects 3 arguments - 2 provided C:...
https://www.tsingfun.com/it/cpp/2090.html 

error C2664: “find_char”: 不能将参数 1 从“const char [14]”转换为“...

error C2664: “find_char”: 不能将参数 1 从“const char [14]”转换为“std::string &出错代码:#include <iostream>#include <string>using std::cout;using std::endl;using std::string; const引用形参举例 非const...出错代码: #include <iostream> #include <string> using...
https://www.tsingfun.com/it/cpp/2138.html 

*.bsc文件是干什么用的? - C/C++ - 清泛网 - 专注C/C++及内核技术

*.bsc文件是干什么用的?.bsc 用于浏览项目信息,可在   Prject Settings Link页中勾掉GenerateBrowseInfoFile,   禁止生成.bsc文件,以加快编译速度。但若....bsc 用于浏览项目信息,可在    Prject \ Settings \ Link 页中勾...
https://www.tsingfun.com/it/cp... 

cout保留两位小数输出 - C/C++ - 清泛网 - 专注C/C++及内核技术

cout保留两位小数输出cout_two_decimalC++ std::cout输出2位小数的代码: include <stdio h> include <iostream> include <iomanip> std::setprecision函数需要引入该头文件int main(){ double dval C++ std::cout输出2位小数的代码: #include <stdio.h> #include <iostr...