c++
widon1104
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
deepin&UOS 下qtcreator按F1没有帮助文档解决方法
1)现用命令行安装qt5文档 sudo apt install qt5-doc 2)然后在qtcreator菜单中选择工具-》选项-》帮助-》Documentation-》添加 选择/usr/share/qt5/doc下的所有qch文件 3)最后重启qtcreator 按F1就有帮助文档了原创 2021-12-10 21:01:58 · 1187 阅读 · 0 评论 -
c++ 使用引用防止类的拷贝构造
举一个例子,例子中类的成员函数返回了类的引用,从而避免了类的拷贝构造,提高了效率#include <iostream> #include <vector> #include <cstdio>using namespace std;class VectorRef { std::vector<int> vecInts; public: VectorRef(int size = 5)转载 2015-05-01 09:59:30 · 1029 阅读 · 0 评论 -
sgi stl linux下编译运行
https://github.com/widon1104/sgistl_linux test目录下面的例子可以直接编译运行原创 2016-05-20 22:43:35 · 886 阅读 · 0 评论 -
demangle函数实现
#include #include void Exception::fillStackTrace() { const int len = 200; void* buffer[len]; int nptrs = ::backtrace(buffer, len); char** strings = ::backtrace_symbols(buffer, nptrs); if转载 2016-05-22 18:27:58 · 2132 阅读 · 0 评论
分享