会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hellozhangjz
博客园
首页
新随笔
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
下一页
2022年1月18日
记一个很好用的轻量级翻译软件 copytranslator
摘要: 软件下载主页: https://gitee.com/ylzheng/CopyTranslator/wikis/windows 可以设置始终置顶,监听剪切板,翻译起来非常方便
阅读全文
posted @ 2022-01-18 09:43 hellozhangjz
阅读(449)
评论(0)
推荐(0)
2022年1月17日
vscode自动生成头文件
摘要: Ctrl Shift P 输入:snipp,选配置用户代码片段,新建全局代码片段文件,修改下列模板: { // Place your 全局 snippets here. Each snippet is defined under a snippet name and has a scope, pre
阅读全文
posted @ 2022-01-17 21:28 hellozhangjz
阅读(936)
评论(0)
推荐(0)
exec函数族使用说明
摘要: exec函数不创建新进程,只用磁盘上的程序替换当前进程的正文段、数据段、堆段和栈段。然后从main函数开始运行。 exec函数族使用说明 #include <unistd.h> int execl(const char *pathname, const char *arg, ...) int exe
阅读全文
posted @ 2022-01-17 15:56 hellozhangjz
阅读(112)
评论(0)
推荐(0)
2022年1月16日
文件权限相关系统调用
摘要: 其他系统调用 stat #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> int stat(const char *path, struct stat *buf); int lstat(const char *pathn
阅读全文
posted @ 2022-01-16 17:20 hellozhangjz
阅读(53)
评论(0)
推荐(0)
I/O系统调用
摘要: 常用系统调用 open #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int open(const char *pathname, int flags, mode_t mode); 参数: pathname:文件的路径
阅读全文
posted @ 2022-01-16 17:11 hellozhangjz
阅读(132)
评论(0)
推荐(0)
GDB简洁指南
摘要: - 启动gdb:`gdb program` - 设置运行参数:`set args 10 20 30` - 启动程序: `run(r)`,`start` - 显示源代码:`list(l)` - 显示当前栈帧和运行行:`frame(f)` - 设置显示源代码的行数:`set listsize count
阅读全文
posted @ 2022-01-16 16:50 hellozhangjz
阅读(60)
评论(0)
推荐(0)
静态库与动态库的制作与使用
摘要: 静态链接 (1)制作静态链接 #生成目标文件 gcc -c add.c -o add.o gcc -c sub.c -o sub.o #制作静态库 ar -rcs libmylib.a add.o sub.o 在使用ar工具是时候需要添加参数:rcs r更新 c创建 s建立索引 (2)使用静态库 g
阅读全文
posted @ 2022-01-16 16:28 hellozhangjz
阅读(146)
评论(0)
推荐(0)
2022年1月15日
Makefile
摘要: #wildcard – 查找指定目录下的指定类型的文件 SRC = $(wildcard src/*.c) #patsubst – 匹配替换,体会这个模式替换,把相同的部分用%代替 OBJS = $(patsubst src/%.c, obj/%.o, $(SRC)) TARGET = bin/te
阅读全文
posted @ 2022-01-15 10:42 hellozhangjz
阅读(34)
评论(0)
推荐(0)
2022年1月12日
vimrc
摘要: vim技巧 命令模式下:==是缩进当前行,gg=G是格式化全文 :m,n s/vivian/sky m~n行的第一个 vivian 换为 sky :m,n s/vivian/sky/g m~n行所有 vivian 为 sky Ctrl + V是块选择模式 *跳转到变量或函数的定义处 vimrc "输
阅读全文
posted @ 2022-01-12 19:31 hellozhangjz
阅读(93)
评论(0)
推荐(0)
2021年5月20日
安装YCM
摘要: 安装Vundle git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim Vundle也是vim的插件,所以放到~/.vim/bundle/下。 安装环境 # install CMake sudo
阅读全文
posted @ 2021-05-20 10:30 hellozhangjz
阅读(364)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
下一页
公告