上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 34 下一页
摘要: 答案来源:https://stackoverflow.com/questions/7901864/git-conflict-markers 阅读全文
posted @ 2022-09-24 15:21 yinhuachen 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 1. 2-way merge 和 3-way merge 作者:Lazykid链接:https://www.zhihu.com/question/30200228/answer/866309494来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 Three-way me 阅读全文
posted @ 2022-09-24 14:49 yinhuachen 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 当你的 git 项目需要引用其它的 git 库时,直接把代码复制到你的 git 库中的行为会使得当 “引用库” 的上游发生改变时,难以把这些上游改变和你自己的定制化改变合并。 而如果采用对 .so 文件进行 "include" 的方法,你又很难确保每个使用你的代码的用户会安装那个 .so 库。 以下 阅读全文
posted @ 2022-09-24 04:18 yinhuachen 阅读(17) 评论(0) 推荐(0) 编辑
摘要: git checkout master -- filename答案来源:https://stackoverflow.com/questions/37972753/git-reset-single-file-in-feature-branch-to-be-the-same-as-in-master 阅读全文
posted @ 2022-09-22 22:02 yinhuachen 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 使用 script 命令 答案来源:https://stackoverflow.com/questions/3515208/can-colorized-output-be-captured-via-shell-redirect 阅读全文
posted @ 2022-09-22 21:32 yinhuachen 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 视频1:https://www.bilibili.com/video/BV1hY4y1u7XK/?spm_id_from=333.337.search-card.all.click&vd_source=7a1a0bc74158c6993c7355c5490fc600 内存泄漏原因:malloc/ne 阅读全文
posted @ 2022-09-21 18:46 yinhuachen 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1. bug可能存在的地方有三处代码、输入、配置 2. 工具组合:1. trace(用来定位大致范围) 2. gdb(用来精准定位) 3. 很多工具有 --verbose 选项,可以帮助debug 4. 好的、可维护性高的代码看起来很像需求(手册) 5. 在每一次指针访问时,都增加一个断言 gcc 阅读全文
posted @ 2022-09-21 03:35 yinhuachen 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 把复杂语句拆分成简单语句的工具(输入是C语言,输出也是C语言):C Intermediate Language C语言语句的语义谁说了算?答案:C语言标准手册(比如C99标准手册) C程序是个状态机,CPU也是个状态机,因为CPU = 数字逻辑电路 = 状态机。 指令集相关 指令集是软件和硬件之间的 阅读全文
posted @ 2022-09-21 00:13 yinhuachen 阅读(62) 评论(0) 推荐(0) 编辑
摘要: df / 查看磁盘分区使用情况 fdisk /dev/sdb 对磁盘进行分区 grep "\bint i\b" a.c 查找文件中定义变量i的位置 The symbol \b matches the empty string at the edge of a word wget http://www 阅读全文
posted @ 2022-09-20 10:57 yinhuachen 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 如果字符串使用 ‘’ (单引号)括起来,则使用 A = [], A = [A, str] 这种创建矩阵的方式只会导致“字符串连接” 如果字符串使用 “ ”(双引号)括起来,则使用 A = [], A = [A, str] 这种创建矩阵的方式能够创建矩阵 关于把单引号字符串转换成双引号字符串的方法:例 阅读全文
posted @ 2022-09-13 21:22 yinhuachen 阅读(3296) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 34 下一页