摘要: 参考:https://blog.csdn.net/weixin_30387339/article/details/97729865 注意:当字符串s为“1”时,转换时去掉std::boolalpha。 #include <iostream> #include <sstream> void print 阅读全文
posted @ 2021-03-17 18:04 kouei_kou 阅读(2848) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.cnblogs.com/jiangu66/p/3211956.html 解析对象del.xml如下: <root> <delfile> <filenum> 35 </filenum> <paths> <path> <pathname>/tmp/tmp0/</pathna 阅读全文
posted @ 2021-03-17 15:28 kouei_kou 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/mary19920410/article/details/69053361 一、面向过程设计中的static 1、静态全局变量 在全局变量前,加上关键字static,该变量就被定义成为一个静态全局变量。我们先举一个全局变量和静态全局变量的例子,例如, 阅读全文
posted @ 2021-03-11 20:12 kouei_kou 阅读(1949) 评论(0) 推荐(0) 编辑
摘要: 转载:https://blog.csdn.net/qq_29621351/article/details/80487163 在C/C++中,宏定义的有效范围被规定为当前文件内有效。 “当前文件内有效”分为两种情况,一种是定义在头文件中,另一种是定义在源文件中。 1、在头文件中的宏定义随着头文件一同被 阅读全文
posted @ 2021-03-11 18:18 kouei_kou 阅读(646) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.runoob.com/w3cnote/extern-head-h-different.html 用#include可以包含其他头文件中变量、函数的声明,为什么还要 extern关键字?如果我想引用一个全局变量或函数a,我只要直接在源文件中包含 #include<xxx. 阅读全文
posted @ 2021-03-11 18:03 kouei_kou 阅读(362) 评论(0) 推荐(0) 编辑
摘要: C+ 全局变量初始化中的nifty counter idiom的原理参考了以下链接: https://www.cnblogs.com/catch/p/4314256.html 本文给出一个可以运行的实例,不对之处请批评指正。 /* class_a.h */ #ifndef _class_h_ #de 阅读全文
posted @ 2021-03-11 14:09 kouei_kou 阅读(199) 评论(0) 推荐(1) 编辑
摘要: 设置高亮显示搜索结果 😒et hlsearch 取消高亮显示 😒et nohlsearch 高亮和取消高亮需要手动设置。 应该可以创建快捷键。 阅读全文
posted @ 2021-03-11 13:43 kouei_kou 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/lustar/p/10717502.html class A { public: A(int i) :a(i){} int getValue(){ return a; } private: int a; }; int main() { A* p1 阅读全文
posted @ 2021-03-10 15:23 kouei_kou 阅读(56) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2020.cnblogs.com/blog/2018398/202103/2018398-20210306112815644-716023263.png) 阅读全文
posted @ 2021-03-06 11:29 kouei_kou 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.cnblogs.com/hqbhonker/p/3977200.html 学习数据库时,我们只是以学习的态度,考虑如何使用数据库命令语句,并未想过工作中,如果误操作一下,都可能导致无可挽回的损失。当我在工作中真正遇到这些问题时,我开始寻找答案。 今天主要以oracle数 阅读全文
posted @ 2021-03-03 18:07 kouei_kou 阅读(195) 评论(0) 推荐(0) 编辑