摘要: stringstream 是 C++ 提供的专门用于处理字符串的 输入输出 流类。 在C++中,将数据从一个对象到另一个对象的流动抽象为“流”。流在使用前要被创建,使用后要被删除。 stringstream 定义于头文件 ,它其实是个别名,具体定义如下: typedef basic_stringst 阅读全文
posted @ 2025-03-25 13:39 老禾的账本 阅读(63) 评论(0) 推荐(0)
摘要: git stash 命令允许你临时保存当前工作目录的更改,以便你可以切换到其他分支或处理其他任务。 保存当前工作进度: git stash 查看存储的进度: git stash list 应用最近一次存储的进度: git stash apply 应用并删除最近一次存储的进度: git stash p 阅读全文
posted @ 2025-03-18 17:06 老禾的账本 阅读(28) 评论(0) 推荐(0)
摘要: 切换远程分支git checkout -b 新分支 origin/master本地分支关联远程分支git branch --set-upstream 本地分支 origin/远程分支也可以:git fetch origin developgit checkout -b myfeature origi 阅读全文
posted @ 2025-03-18 16:37 老禾的账本 阅读(67) 评论(0) 推荐(0)
摘要: 参考: https://blog.csdn.net/QQ2010899751/article/details/81347599 在合并几个oh的repo库后,repo sync repo sync时报出的警告: Fetching: 0% (0/465) 0:00 | ..working..Inval 阅读全文
posted @ 2025-02-28 20:33 老禾的账本 阅读(109) 评论(0) 推荐(0)
摘要: 注释掉cat bootstrap.sh里面的configure,然后sudo执行: sudo ./bootstrap.sh sudo 执行configure,否则可能后续编译时找不到config.h报错。 sudo ./configure --enable-shared --host=aarch64 阅读全文
posted @ 2025-02-28 10:23 老禾的账本 阅读(72) 评论(1) 推荐(0)
摘要: oh移植第三方库: https://blog.51cto.com/u_15375308/11896421 vim https://mp.weixin.qq.com/s?__biz=Mzg4ODQ1NTE2Mg==&mid=2247570953&idx=1&sn=564fb3e0a984f109118 阅读全文
posted @ 2025-02-27 23:23 老禾的账本 阅读(6) 评论(0) 推荐(0)
摘要: 参考: https://zhuanlan.zhihu.com/p/123370920 https://blog.csdn.net/csh1807266489/article/details/137828008 https://www.cnblogs.com/taohuaya/p/10761799.h 阅读全文
posted @ 2025-02-27 23:20 老禾的账本 阅读(5) 评论(2) 推荐(0)
摘要: 原文链接:https://blog.csdn.net/sinat_40025092/article/details/141320289 PIC:"Position-Independent Code"(位置无关代码)该选项的主要作用是在编译时生成可以在内存中任意位置加载并执行的代码,而不会因为加载地址 阅读全文
posted @ 2025-02-27 23:17 老禾的账本 阅读(157) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/weixin_51753483/article/details/141001572 git remote add [shortname] [url] 在github新建仓库后,如果不是clone,也可以在本地通过如下命令与远程: $ git init 阅读全文
posted @ 2025-02-27 22:45 老禾的账本 阅读(54) 评论(0) 推荐(0)
摘要: 拓展上文:https://www.cnblogs.com/tong2357/p/18725407 参考:https://blog.csdn.net/wjjontheway/article/details/124128462 repo init -u git@gitee.com:openharmony 阅读全文
posted @ 2025-02-27 21:47 老禾的账本 阅读(552) 评论(0) 推荐(0)