上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 23 下一页
摘要: ///// callbackDefine.h #ifndef __CALL_BACK_DEFINE_H__ #define __CALL_BACK_DEFINE_H__ #include <iostream> using namespace std; // STEP1: 声明回调函数类型 typed 阅读全文
posted @ 2020-05-25 07:15 He_LiangLiang 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 目录结构: github 项目地址:https://github.com/liangzai90/MyExecProject2020/tree/master/makefile_project/ASimpleMakefileProject #可执行文件的名称 NAME=Demo1 #需要包含的头文件目录 阅读全文
posted @ 2020-05-23 15:36 He_LiangLiang 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 一行代码抵千言。字符串里面有登录名和密码,用特殊字符分隔。现在需要从这个字符串里面读取数据。 需要用到sscanf函数,以及通配符。 当然,这里的通配符并非完美(没有过滤非法字符、没有限制字符个数,等等) 但是,这个Demo只是是满足我们目前的需求的。当前使用,足以。 #include <stdio 阅读全文
posted @ 2020-05-20 23:33 He_LiangLiang 阅读(580) 评论(0) 推荐(0) 编辑
摘要: makefile INC_DIR=-I/opt/mongo-cxx-driver/include/mongocxx/v_noabi/ -I/opt/mongo-cxx-driver/include/bsoncxx/v_noabi/ LIB_DIR=-L/opt/mongo-cxx-driver/li 阅读全文
posted @ 2020-05-20 09:35 He_LiangLiang 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 关于CMake的入门知识:https://www.hahack.com/codes/cmake/ CMakeLists.txt # CMake 最低版本号要求 cmake_minimum_required (VERSION 2.8) # 项目信息 project (hello_mongoc2) # 阅读全文
posted @ 2020-05-20 09:34 He_LiangLiang 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 参考地址:https://blog.csdn.net/bit_clearoff/article/details/53966718 gdb Demo r:开始运行程序 b + n:表示 在第n行打断点例如:b 12就是在第12行打下断点 n:单步执行程序 s:跳转到函数的入口地址 p:打印变量的值 u 阅读全文
posted @ 2020-05-20 09:27 He_LiangLiang 阅读(169) 评论(0) 推荐(0) 编辑
摘要: centOS7 安装 vscode step1: down rpm file from this page.https://code.visualstudio.com/download step2: install some dependenciessudo yum install libXScrn 阅读全文
posted @ 2020-05-20 09:26 He_LiangLiang 阅读(1799) 评论(0) 推荐(0) 编辑
摘要: https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tgz 安装相关依赖包:sudo yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel r 阅读全文
posted @ 2020-05-20 09:25 He_LiangLiang 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 参考链接:https://blog.csdn.net/qq965194745/article/details/79285536 需要对centos7的配置做若干修改: vi /etc/mongod.conf将绑定ip改为0.0.0.0(请注意配置文件里面的空格,在python中,空格和 Table空 阅读全文
posted @ 2020-05-20 09:22 He_LiangLiang 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1.重新编译和安装 OpenSSL openssl 依赖包: sudo yum install perl-core perl pcre-devel zlib zlib-devel cyrus-sasl cyrus-sasl-devel libtemplate-perl wget -c https:/ 阅读全文
posted @ 2020-05-20 09:12 He_LiangLiang 阅读(1303) 评论(1) 推荐(1) 编辑
摘要: 罗列一下cmake常用的命令。 CMake支持大写、小写、混合大小写的命令。 一个CMakeLists.txt的例子: # CMake 最低版本号要求 cmake_minimum_required (VERSION 2.8) # 项目信息 project (hello_mongoc2) # 查找目录 阅读全文
posted @ 2020-05-19 20:39 He_LiangLiang 阅读(2421) 评论(0) 推荐(0) 编辑
摘要: [] 指明参数是值传递还是引用传递。 值传递,传入一个拷贝。外部的值改变的时候,不会影响传入函数内部的值。 比如,这里的x. 外部x的值改变了,而匿名函数内部的x 仍然是0,不会改变。因为他们是2个不同的值,互补影响。 [] , 用以访问外部作用域。在 lambda introducer (每个la 阅读全文
posted @ 2020-05-18 06:53 He_LiangLiang 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 时间:2020年5月17日11:37:10 JsonCPP 改版了,以前的 Json::Reader, Json::Parse被弃用了,得用新的方法。 JsonCpp项目地址:https://github.com/open-source-parsers/jsoncpp/blob/master/doc 阅读全文
posted @ 2020-05-17 11:42 He_LiangLiang 阅读(4289) 评论(0) 推荐(0) 编辑
摘要: VS Code 基本插件 Chinese (Simplified) Language Pack for Visual Studio Codevscode-iconsRemote DevelopmentBetter Comments VS Code CPP 相关插件 C/C++C++ Intellis 阅读全文
posted @ 2020-05-16 16:54 He_LiangLiang 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1.CentOS查看端口占用: lsof -i tcp:80 2、列出所有端口 netstat -ntlp 查看已经开放的端口 firewall-cmd --list-ports 如何永久开放某个端口,请看我的这篇文章。 https://www.cnblogs.com/music-liang/p/1 阅读全文
posted @ 2020-05-16 14:57 He_LiangLiang 阅读(1387) 评论(0) 推荐(0) 编辑
摘要: cmake安装 参考地址:https://www.tecmint.com/install-openssl-from-source-in-centos-ubuntu/ 1.安装最新版本 OpenSSL sudo yum install perl-core libtemplate-perl zlib-d 阅读全文
posted @ 2020-05-16 14:51 He_LiangLiang 阅读(2089) 评论(0) 推荐(0) 编辑
摘要: CentOS7编译和安装GCC7.5 一、 环境介绍: CentOS7 虚拟机连上了互联网(为什么要强调这点呢,因为CentOS7每次进入系统,都需要手动点击右上角的Connect,才能连上互联网。在非联网情况下,会出现各种问题,影响我们的判断和安装) 二、 为什么是GCC7.5 CentOS7 自 阅读全文
posted @ 2020-05-16 14:38 He_LiangLiang 阅读(15036) 评论(0) 推荐(0) 编辑
摘要: 左值、左值引用、右值、右值引用 1、左值和右值的概念 左值是可以放在赋值号左边可以被赋值的值;左值必须要在内存中有实体; 右值当在赋值号右边取出值赋给其他变量的值;右值可以在内存也可以在CPU寄存器。 一个对象被用作右值时,使用的是它的内容(值),被当作左值时,使用的是它的地址。 2、引用 引用是C 阅读全文
posted @ 2020-05-14 09:16 He_LiangLiang 阅读(581) 评论(0) 推荐(0) 编辑
摘要: Linux安装mongo 一、 环境介绍: CentOS6, CentOS7 二、 安装步骤 2.1.官方参考地址:https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ 2.2.配置程序包管理系统(yum 命令安装) 阅读全文
posted @ 2020-05-13 22:47 He_LiangLiang 阅读(755) 评论(0) 推荐(0) 编辑
摘要: windows访问centos7里面的mongo 参考链接:https://blog.csdn.net/qq965194745/article/details/79285536 1.需要对centos7的配置做若干修改: vi /etc/mongod.conf 将绑定ip改为0.0.0.0(请注意配 阅读全文
posted @ 2020-05-13 11:15 He_LiangLiang 阅读(828) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 23 下一页