上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 34 下一页
摘要: " Try to prevent bad habits like using the arrow keys for movement. This is " not the only possible bad habit. For example, holding down the h/j/k/l k 阅读全文
posted @ 2022-10-12 17:18 yinhuachen 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 参考网址:https://www.makeuseof.com/windows-10-11-disable-caps-lock/ ( How to Disable Caps Lock by Editing the Registry 其中第八改成下面这个 "Scancode Map"=hex:00,00 阅读全文
posted @ 2022-10-12 14:30 yinhuachen 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 1. 把 ics2021 做个备份,存为 ics2021_backup 2. 来到 ics2021/PA,把 PA1-2 的所有 commit 压缩成一个 commit,使用 git rebase -i <after-this-commit> 命令 来源:https://stackoverflow. 阅读全文
posted @ 2022-10-11 10:13 yinhuachen 阅读(63) 评论(0) 推荐(0) 编辑
摘要: find . -iname "*.v" | xargs sed -r -i 's/([^a-zA-Z0-9_])([A-Z_]+)([^a-zA-Z0-9_])/\1<特定前缀>\2\3/g' 这里使用了 find 和 sed,宏的格式是[A-Z_]+,使用了 extended regexp 阅读全文
posted @ 2022-10-10 19:25 yinhuachen 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 提问:.gitignore。如何修改 .gitignore 才能忽略掉项目中的某个特定子目录下的任何修改。 详细解释:(展示 git status 结果)我想要让 git 忽略 npc/build 下的所有修改以下是我在 ysyx-workbench 下的 .gitignore (展示 .gitig 阅读全文
posted @ 2022-10-10 17:45 yinhuachen 阅读(1127) 评论(0) 推荐(0) 编辑
摘要: 来源:ysyx5期, PA2 基础设施(2)- “测试你的klib” 内存和字符串的写入函数, 例如memset(), strcpy()等. 内存和字符串的只读函数, 例如memcmp(), strlen()等. 格式化输出函数, 例如sprintf()等. 如何进行充分的测试: 1. 在可以遍历输 阅读全文
posted @ 2022-10-05 14:09 yinhuachen 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 使用 git reset --soft 答案来源(高赞回答):https://stackoverflow.com/questions/22355612/how-to-undo-the-last-commit-in-git-but-keep-my-changes-as-unstaged 阅读全文
posted @ 2022-09-29 01:07 yinhuachen 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 看高赞回答 答案来源:https://stackoverflow.com/questions/42174485/git-how-dangerous-is-deleted-by-us-conflict 阅读全文
posted @ 2022-09-28 06:30 yinhuachen 阅读(1247) 评论(0) 推荐(0) 编辑
摘要: 看高赞回答 答案来源 https://stackoverflow.com/questions/1186535/how-do-i-modify-a-specific-commit 阅读全文
posted @ 2022-09-28 06:29 yinhuachen 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1. 预处理 = 文本粘贴 + 去除注释 gcc -E 可以通过 gcc --verbose(阅读工具的日志)来查看头文件是如何被编译器找到的(可以使用 gcc --verbose > /dev/null 丢掉预处理的结果,只看verbose的内容) 在 C 编程语言中,#warning 指令类似于 阅读全文
posted @ 2022-09-26 16:51 yinhuachen 阅读(90) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 34 下一页