2022年8月23日

AutoTrace

摘要: 1 class AutoTrace { 2 public: 3 typedef std::function<void()> AutoTraceFun; 4 AutoTrace(AutoTraceFun beginFun, AutoTraceFun endFun) : endFun_(endFun){ 阅读全文

posted @ 2022-08-23 11:12 炽离 阅读(48) 评论(0) 推荐(0) 编辑

2022年3月11日

c++随机字符串生成

摘要: #include <iostream> #include <random> #include <ctime> #include <chrono> namespace ShellRandom { static std::uniform_int_distribution<int> diProbabili 阅读全文

posted @ 2022-03-11 11:26 炽离 阅读(862) 评论(0) 推荐(0) 编辑

2022年1月17日

linux命令:top

摘要: linux命令:top 0 top用于查看系统进程 用man top查看top使用说明,主要交互分三段:Global-defaults、Summary-Area-defaults、Task-Area-defaults 1 Global-defaults 2 A - Alt display Off ( 阅读全文

posted @ 2022-01-17 21:21 炽离 阅读(250) 评论(0) 推荐(0) 编辑

2021年11月17日

访问c++类的私有成员

摘要: 访问c++类的私有成员 1 目标 近期需要对代码进行单测覆盖,期望不改动代码仓库的情况下,单测有足够多的灵活度,直接根据历史覆盖行数,设计出全覆盖的单测。因此,访问类的私有成员变量和函数必不可少。然后,c++类本身设计为对外部访问封闭(friend class or function也是要改动代码, 阅读全文

posted @ 2021-11-17 14:28 炽离 阅读(1094) 评论(0) 推荐(0) 编辑

2021年8月18日

c++实现十大经典排序算法

摘要: 1 #include <iostream> 2 #include <vector> 3 4 std::vector<int> g_array { 5 12, 3, 52, 65, 9, 29,16, 7, 2, 78, 63, 98, 23, 43, 1, 24, 84, 34, 94, 32 6 阅读全文

posted @ 2021-08-18 09:58 炽离 阅读(238) 评论(0) 推荐(0) 编辑

2021年7月14日

C15:进程间通信

摘要: 阅读全文

posted @ 2021-07-14 21:22 炽离 阅读(32) 评论(0) 推荐(0) 编辑

2021年7月12日

C14:高级IO

摘要: 阅读全文

posted @ 2021-07-12 20:42 炽离 阅读(29) 评论(0) 推荐(0) 编辑

2021年6月28日

C12:线程控制

摘要: 阅读全文

posted @ 2021-06-28 16:44 炽离 阅读(27) 评论(0) 推荐(0) 编辑

2021年6月15日

C11: 线程

摘要: 阅读全文

posted @ 2021-06-15 20:04 炽离 阅读(37) 评论(0) 推荐(0) 编辑

2021年6月9日

c编译基础

摘要: 阅读全文

posted @ 2021-06-09 14:42 炽离 阅读(36) 评论(0) 推荐(0) 编辑

导航