lxg

导航

 
上一页 1 2 3 4 5 6 ··· 10 下一页

2023年7月16日

摘要: #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日

摘要: 在可能泄漏的文件头部加入下面几行(保证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日

摘要: 引自: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日

摘要: 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日

摘要: 引自:https://blog.csdn.net/weixin_50016546/article/details/129778052 阅读全文
posted @ 2023-06-29 13:45 lxg_7105 阅读(21) 评论(0) 推荐(0) 编辑
 

2023年4月25日

摘要: https://blog.csdn.net/blqzj214817/article/details/115213617 阅读全文
posted @ 2023-04-25 16:26 lxg_7105 阅读(95) 评论(0) 推荐(0) 编辑
 

2022年4月13日

摘要: // 用于表明一个类是不允许被拷贝的#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日

摘要: (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日

摘要: #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日

摘要: 阅读全文
posted @ 2021-07-27 14:14 lxg_7105 阅读(35) 评论(0) 推荐(0) 编辑
 
上一页 1 2 3 4 5 6 ··· 10 下一页