会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
又玄のblog
博客园
首页
新随笔
联系
订阅
管理
2025年6月21日
常用网站
摘要: Cpp CppCoreGuidelines Compiler Explorer Other obsidian插件 快速掌握一个语言最常用的50%
阅读全文
posted @ 2025-06-21 16:23 又玄
阅读(7)
评论(0)
推荐(0)
2025年4月21日
clangd配置
摘要: "clangd.arguments": [ // 启用 Clang-Tidy 以提供「静态检查」 "--clang-tidy", // "--clang-tidy-executable=${workspaceFolder}/prebuilts/clang/ohos/linux-x86_64/llvm
阅读全文
posted @ 2025-04-21 21:21 又玄
阅读(464)
评论(1)
推荐(0)
2025年4月10日
git diff美化
摘要: # Debian/Ubuntu sudo apt install git-delta # Arch Linux sudo pacman -S git-delta # MacOS (Homebrew) brew install git-delta git config --global core.pa
阅读全文
posted @ 2025-04-10 18:11 又玄
阅读(25)
评论(0)
推荐(0)
2025年4月1日
c++ inline
摘要: inline inline cppreference 重定义 举例: .LC0: .string "\345\245\207" .LC1: .string "\345\201\266" num_check(int): push rbp mov rbp, rsp mov DWORD PTR [rbp-
阅读全文
posted @ 2025-04-01 13:55 又玄
阅读(30)
评论(1)
推荐(0)
2025年3月31日
解决:pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_callback_set2
摘要: 当运行 pacman 报错时 sudo pacman -Syy pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_callback_set2 可以打开网址https://arch
阅读全文
posted @ 2025-03-31 20:21 又玄
阅读(122)
评论(0)
推荐(0)
2025年3月27日
鸿蒙代码自检项
摘要: 鸿蒙代码自检项 自检项 自检结果 涉及跨进程调用的相关操作需要抛至主线程或加锁防止并发 成员变量进行赋值或创建需要排查并发 谨慎在lambda表达式中使用引用捕获 谨慎在未经拷贝的情况下使用外部传入的string、C字符串 map\vector\list\set等stl模板类使用时需要排查并发 谨慎
阅读全文
posted @ 2025-03-27 16:21 又玄
阅读(37)
评论(0)
推荐(0)
2025年3月26日
自用小技巧
摘要: https://godbolt.org/ cppinsights tar -czvf 压缩文件名.tar.gz 要压缩的文件/目录 -c:创建新归档文件。 -z:使用 gzip 压缩。 -v:显示详细信息。 -f:指定输出的文件名。 tar -xzvf 压缩文件名.tar.gz 完整命令速查表 操作
阅读全文
posted @ 2025-03-26 17:11 又玄
阅读(18)
评论(0)
推荐(0)
c++ 项目、第三方库、工具
摘要: 工具 clangd compelie_commands.json 项目 TinyWebServer 第三方库 日志库 https://www.zhihu.com/question/613879711/answer/3134744187?utm_psn=1888275055890371346 提到的
阅读全文
posted @ 2025-03-26 17:07 又玄
阅读(13)
评论(0)
推荐(0)
2025年3月24日
国内镜像安装rust
摘要: export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static export RUSTUP_UPDATE_ROOT=https://mirrors.ustc.edu.cn/rust-static/rustup curl --prot
阅读全文
posted @ 2025-03-24 19:25 又玄
阅读(190)
评论(0)
推荐(0)
2025年3月17日
c++ 原始指针指针
摘要: 指针 struct C { int x, y; } c; int* px = &c.x; int* pxe= px + 1; int* py = &c.y; int main() { printf("value of c.x: = %d\n", c.x); printf("value of c.y:
阅读全文
posted @ 2025-03-17 17:33 又玄
阅读(7)
评论(0)
推荐(0)
下一页
公告