会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lxg
导航
博客园
首页
新随笔
联系
订阅
管理
公告
上一页
1
2
3
4
5
6
···
10
下一页
2023年7月16日
C++内存泄漏检测
摘要: #pragma once#include <map> //TracerNew.h void* operator new(size_t size, const char* file, long line);void* operator new(size_t size);void operator de
阅读全文
posted @ 2023-07-16 11:47 lxg_7105
阅读(31)
评论(0)
推荐(0)
编辑
2023年7月15日
VS2015 C++代码内存泄漏
摘要: 在可能泄漏的文件头部加入下面几行(保证malloc和new的泄漏都可以检测到) #define _CRTDBG_MAP_ALLOC #include <crtdbg.h> #ifdef _DEBUG //重载new运算符 #define new new(_NORMAL_BLOCK, __FILE__
阅读全文
posted @ 2023-07-15 12:06 lxg_7105
阅读(91)
评论(0)
推荐(0)
编辑
2023年7月10日
C++类模板实现工厂模式(优化if else/switch case)
摘要: 引自:https://blog.csdn.net/weixin_43795921/article/details/127224633 template <typename IdentifierType, class AbstractProduct, class ProductCreator = Ab
阅读全文
posted @ 2023-07-10 16:36 lxg_7105
阅读(165)
评论(0)
推荐(0)
编辑
2023年7月7日
TortoiseGit-合并分支方法
摘要: https://blog.csdn.net/weixin_43553694/article/details/104118402 1、首先当前分支 “提交” 并 “推送” 到服务器上,比如开发分支 dev 合并到 master 上 2、右键 > “切换分支” 到要合并的分支 master 3、拉取最新
阅读全文
posted @ 2023-07-07 11:54 lxg_7105
阅读(1214)
评论(0)
推荐(0)
编辑
2023年6月29日
vs打开qt的ui文件,报错闪退方法
摘要: 引自:https://blog.csdn.net/weixin_50016546/article/details/129778052
阅读全文
posted @ 2023-06-29 13:45 lxg_7105
阅读(21)
评论(0)
推荐(0)
编辑
2023年4月25日
qt自定义窗口添加父窗口后,显示不出来
摘要: https://blog.csdn.net/blqzj214817/article/details/115213617
阅读全文
posted @ 2023-04-25 16:26 lxg_7105
阅读(95)
评论(0)
推荐(0)
编辑
2022年4月13日
C++11改进观察者模式
摘要: // 用于表明一个类是不允许被拷贝的#define CANNOT_COPY(Classname) \ private: \ Classname(const Classname&); // 用于表明一个类是不允许被赋值的#define CANNOT_ASSIGN(Classname) \ privat
阅读全文
posted @ 2022-04-13 09:50 lxg_7105
阅读(49)
评论(0)
推荐(0)
编辑
2021年9月20日
extern "C"用法
摘要: (1)C++调用C函数: //xx.h extern int add(...) //xx.c int add(){ } //xx.cpp extern "C" { #include "xx.h" } (2)C调用C++函数 //xx.h extern "C"{ int add(); } //xx.c
阅读全文
posted @ 2021-09-20 21:22 lxg_7105
阅读(39)
评论(0)
推荐(0)
编辑
2021年9月11日
C++11多线程异步执行耗时程序
摘要: #include <iostream>#include <thread>#include <future>#include <vector>#include <mutex> std::mutex mtx; using namespace std;using namespace chrono; tem
阅读全文
posted @ 2021-09-11 12:55 lxg_7105
阅读(345)
评论(0)
推荐(0)
编辑
2021年7月27日
C++常用排序算法
摘要:
阅读全文
posted @ 2021-07-27 14:14 lxg_7105
阅读(35)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
···
10
下一页