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

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

rpcndr.h和wtypes.h冲突的解决方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

rpcndr.h和wtypes.h冲突的解决方法当编译出现如下错误时:1>c: program files (x86) microsoft sdks windows v7.0a include rpcndr.h(162): error C2632: char后面的in...当编译出现如下错误时: 1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\rpcndr.h(162): e...
https://www.tsingfun.com/it/cpp/2067.html 

[工程源码实例] C++ ADO 读写Excel源码及注意点 - C/C++ - 清泛网 - 专注C/C++及内核技术

...截图:主要代码片段: 导入Excel COM支持。。。不过程序编译后即使客户机没...工程源码下载:excel-ado.zip 运行结果截图: 生成的Excel截图: 主要代码片段: //导入Excel COM支持。。。不过程序编译后即使客户...
https://www.tsingfun.com/it/cpp/1383.html 

C++ 线程安全的单例模式 - C/C++ - 清泛网 - 专注C/C++及内核技术

...态实例的懒汉模式 这里需要注意的是,C++0X以后,要求译器保证内部静态变量的线程安全性,可以不加锁。但C++ 0X以前,仍需要加锁。 class SingletonInside { private: SingletonInside(){} public: static SingletonInside* getInstance() ...
https://www.tsingfun.com/it/cpp/1197.html 

cmake与autoconf+automake的对比 - C/C++ - 清泛网 - 专注C/C++及内核技术

...G_RANLIB 测试头文件 测试类型定义 测试结构 测试译器特性 测试库函数 测试系统调用 AC_OUTPUT find_library(lib libname pathllist) find_package(packename) find_path(var name pathlist) find_program(var name pathlist) 子目录 SUBDIR...
https://www.tsingfun.com/it/cpp/1285.html 

STL:accumulate与自定义数据类型 - C/C++ - 清泛网 - 专注C/C++及内核技术

...cumulate()的第四个参数,accumulate()的原型为(文件取自DEV-C++译器): template<typename _InputIterator, typename _Tp, typename _BinaryOperation> _Tp accumulate(_InputIterator __first, _InputIterator __last, _Tp __init, _BinaryOperation __binary_op) { // c...
https://www.tsingfun.com/it/cpp/2069.html 

C++虚析构函数解析 - C/C++ - 清泛网 - 专注C/C++及内核技术

...为这样会增加内存开销。当类里面有定义虚函数的时候,译器会给类添加一个虚函数表,里面来存放虚函数指针,这样就会增加类的存储空间。所以,只有当一个类被用来作为基类的时候,才把析构函数写成虚函数。 C++ 虚析...
https://www.tsingfun.com/it/cpp/2101.html 

passing xxx as \'this\' argument of xxx discards qualifiers - C/C++ - 清泛网 - 专注C/C++及内核技术

...方法时只能调用其const版本,因为没有定义这个版本,因此译器提示错误. 解决方法就是将getId和getName方法声明为const成员,即在函数末尾加上const关键字。 const 常量成员
https://www.tsingfun.com/it/cpp/gcc-asan.html 

gcc自带内存泄漏、内存越界检测工具 - asan - C/C++ - 清泛网 - 专注C/C++及内核技术

...,使用起来非常简单,只需要链接时加上 -lasan 即可。(编译选项也可以加上 -fsanitize=address)测试代码如 asan内存异常检测工具,功能类似valgrind,不过是gcc自带的原生工具,使用起来非常简单,只需要链接时加上 -lasan 即可。...
https://www.tsingfun.com/it/cp... 

【解决】asan runtime does not come first in initial library list - C/C...

...PRELOAD=/usr/lib64/libasan.so.4 (Linux asan的库位置) 4、添加编译选项:-fsanitize=address 5、动态链接 -lasan --> 静态链接 -static-libasan 6、export ASAN_OPTIONS=verify_asan_link_order=0禁用检查(仅高版本gcc支持)。 注:加-fsanitize=address编译...
https://www.tsingfun.com/it/cpp/use_jemalloc.html 

jemalloc 接入方法:提高内存使用效率解决内存泄漏 - C/C++ - 清泛网 - 专...

...:提高内存使用效率解决内存泄漏use_jemallocjemalloc 介绍及编译步骤本文直接略过,仅记录一下C++程序如何接入jemalloc,以及如何确认jemalloc已载入。注:jemalloc是非侵入式的,目标程序无需依赖jemalloc库,只需要在目标 jemalloc 介...