会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
王清河
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
4
5
6
7
8
9
10
11
12
···
91
下一页
2022年7月25日
makefile 创建文件夹模板
摘要: DIR_INC=. DIR_SRC=. DIR_OBJ:=./obj SRC = $(wildcard ${DIR_SRC}/*.cpp) OBJ = $(patsubst %.cpp, ${DIR_OBJ}/%.o, $(notdir ${SRC})) TARGET=JSON BIN_TARGET
阅读全文
posted @ 2022-07-25 17:10 王清河
阅读(439)
评论(0)
推荐(0)
2022年7月21日
vim使用经验
摘要: Linux 命令行相关 光标移动(shell终端) 左/右移一个字符 方向键 ctrl + b/f 左/右移一个单词 ctrl + 方向键 alt + b/f esc + b/f 移动到行首/尾 ctrl + a/e Vim 命令 光标移动 多行移动 gg 移动文件头 G 移动到文件尾 num k
阅读全文
posted @ 2022-07-21 13:10 王清河
阅读(53)
评论(0)
推荐(0)
2022年6月8日
std::function
摘要: 头文件:<functional> 定义: template< class R, class... Args > class function<R(Args...)>; std::functional 是一个类模板,它是一个通用的多态函数包装器。std::funcion 的实例可以存储、拷贝、和引用任
阅读全文
posted @ 2022-06-08 15:39 王清河
阅读(1588)
评论(0)
推荐(0)
2022年6月7日
operator
摘要: operator 是 C++ 一个重载操作符的关键字,但是 operator 除了可以重载操作符以外,还可以用做对两个不同类的转换。 具体使用如下: #include<iostream> using namespace std; struct X { X(){ num = 10; } // impl
阅读全文
posted @ 2022-06-07 16:10 王清河
阅读(1008)
评论(0)
推荐(0)
2022年6月6日
std::copy, std::copy_if
摘要: 翻译:https://en.cppreference.com/w/cpp/algorithm/copy 定义在头文件 <algorithm> 函数声明 template< class InputIt, class OutputIt > OutputIt copy( InputIt first, In
阅读全文
posted @ 2022-06-06 15:44 王清河
阅读(781)
评论(0)
推荐(0)
std::fill_n
摘要: 翻译:https://en.cppreference.com/w/cpp/algorithm/fill_n 定义在头文件<algorithm> 函数声明: template< class OutputIt, class Size, class T > void fill_n( OutputIt fi
阅读全文
posted @ 2022-06-06 14:46 王清河
阅读(427)
评论(0)
推荐(0)
std::back_inserter_iterator
摘要: 翻译:https://en.cppreference.com/w/cpp/iterator/back_inserter 定义在头文件 <iterator> 函数声明如下: template< class Container > std::back_insert_iterator<Container>
阅读全文
posted @ 2022-06-06 14:18 王清河
阅读(85)
评论(0)
推荐(0)
2022年6月2日
GDB 调试经验
摘要: 1. display 查看的变量的值会在每一次调试步骤暂停后都会显示出该变量的值,如果 display 了多次,它就会显示多个变量的值 2. print 显示的变量的值只会显示一次,当前的值。 3. 取消display显示的值需要使用 undisplay 命令; 4. 条件判断的断点中的判断条件,不
阅读全文
posted @ 2022-06-02 16:55 王清河
阅读(181)
评论(0)
推荐(0)
GDB的命令
摘要: 一、断点相关 1. breakInfo:根据一定的条件暂停程序的运行 命令 作用 break 下一个指令处设置断点 break [file]:function 在 file 文件的 function 函数入口设置断点 break [file]:line 在 file 文件的第 line 行设置断点
阅读全文
posted @ 2022-06-02 14:19 王清河
阅读(284)
评论(0)
推荐(0)
2022年4月3日
openxyl 库使用
摘要: 1. 获取 xlsx 文件的 sheet 数量 sheet1 = wb.sheetnames print("sheet : ", len(sheet1))
阅读全文
posted @ 2022-04-03 16:12 王清河
阅读(574)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
91
下一页
公告