摘要:        
一行代码抵千言。字符串里面有登录名和密码,用特殊字符分隔。现在需要从这个字符串里面读取数据。 需要用到sscanf函数,以及通配符。 当然,这里的通配符并非完美(没有过滤非法字符、没有限制字符个数,等等) 但是,这个Demo只是是满足我们目前的需求的。当前使用,足以。 #include <stdio    阅读全文
posted @ 2020-05-20 23:33
He_LiangLiang
阅读(594)
评论(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
阅读(453)
评论(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
阅读(392)
评论(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
阅读(178)
评论(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
阅读(1819)
评论(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
阅读(217)
评论(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
阅读(167)
评论(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
阅读(1392)
评论(1)
推荐(1)
        
 
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号