上一页 1 ··· 6 7 8 9 10 11 12 13 14 下一页
摘要: 软件下载主页: https://gitee.com/ylzheng/CopyTranslator/wikis/windows 可以设置始终置顶,监听剪切板,翻译起来非常方便 阅读全文
posted @ 2022-01-18 09:43 hellozhangjz 阅读(449) 评论(0) 推荐(0)
摘要: 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函数不创建新进程,只用磁盘上的程序替换当前进程的正文段、数据段、堆段和栈段。然后从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)
摘要: 其他系统调用 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)
摘要: 常用系统调用 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 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)
摘要: #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)
摘要: 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)
摘要: 安装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 下一页