03 2021 档案

摘要:参考: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 阅读(3402) 评论(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 阅读(219) 评论(0) 推荐(0)
摘要:转载:https://blog.csdn.net/mary19920410/article/details/69053361 一、面向过程设计中的static 1、静态全局变量 在全局变量前,加上关键字static,该变量就被定义成为一个静态全局变量。我们先举一个全局变量和静态全局变量的例子,例如, 阅读全文
posted @ 2021-03-11 20:12 kouei_kou 阅读(2110) 评论(0) 推荐(0)
摘要:转载:https://blog.csdn.net/qq_29621351/article/details/80487163 在C/C++中,宏定义的有效范围被规定为当前文件内有效。 “当前文件内有效”分为两种情况,一种是定义在头文件中,另一种是定义在源文件中。 1、在头文件中的宏定义随着头文件一同被 阅读全文
posted @ 2021-03-11 18:18 kouei_kou 阅读(876) 评论(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 阅读(431) 评论(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 阅读(270) 评论(0) 推荐(1)
摘要:设置高亮显示搜索结果 😒et hlsearch 取消高亮显示 😒et nohlsearch 高亮和取消高亮需要手动设置。 应该可以创建快捷键。 阅读全文
posted @ 2021-03-11 13:43 kouei_kou 阅读(380) 评论(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 阅读(84) 评论(0) 推荐(0)
摘要:![](https://img2020.cnblogs.com/blog/2018398/202103/2018398-20210306112815644-716023263.png) 阅读全文
posted @ 2021-03-06 11:29 kouei_kou 阅读(179) 评论(0) 推荐(0)
摘要:转载:https://www.cnblogs.com/hqbhonker/p/3977200.html 学习数据库时,我们只是以学习的态度,考虑如何使用数据库命令语句,并未想过工作中,如果误操作一下,都可能导致无可挽回的损失。当我在工作中真正遇到这些问题时,我开始寻找答案。 今天主要以oracle数 阅读全文
posted @ 2021-03-03 18:07 kouei_kou 阅读(227) 评论(0) 推荐(0)
摘要:// https://blog.csdn.net/u012234115/article/details/83186386 #include <iostream> #include <string> #include <string.h> #include <stdlib.h> using names 阅读全文
posted @ 2021-03-03 18:02 kouei_kou 阅读(2348) 评论(0) 推荐(1)
摘要:https://www.cnblogs.com/wanqieddy/archive/2011/09/21/2184257.html Makefile 中:= ?= += =的区别 在Makefile中我们经常看到 = := ?= +=这几个赋值运算符,那么他们有什么区别呢?我们 来做个简单的实验 新 阅读全文
posted @ 2021-03-02 22:07 kouei_kou 阅读(184) 评论(0) 推荐(0)
摘要:参考:https://www.cnblogs.com/smallredness/p/9245127.html 下载boost源码 boost下载地址 解压到一个目录 tar -zxvf boost_1_66_0.tar.gz 1、正常编译: 进入boost_1_66_0目录中 cd boost_1_ 阅读全文
posted @ 2021-03-02 21:56 kouei_kou 阅读(427) 评论(0) 推荐(0)
摘要:https://www.jianshu.com/p/276d59cbc529 Linux下安装mysql-5.7.24 一、安装前准备 1、检查是否已经安装过mysql,执行命令 [root@localhost /]# rpm -qa | grep mysql 从执行结果,可以看出我们已经安装了my 阅读全文
posted @ 2021-03-02 21:46 kouei_kou 阅读(98) 评论(0) 推荐(0)
摘要:.PHONY:clean INC_COMM_PATH = -I/usr/local/include/zookeeper LIB_COMM = -Wl,-Bstatic -lzookeeper_mt -Wl,-Bdynamic -DTHREADED -lpthread CXX = g++ CFLAGS 阅读全文
posted @ 2021-03-02 21:32 kouei_kou 阅读(85) 评论(0) 推荐(0)