摘要:博客和书籍资料 来自该地址 https://www.cnblogs.com/qicosmos/category/490693.html 自行编写相应代码进行学习 1 // TimeTest.cpp: 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #inc
        
阅读全文
 
        
     
    
        
        
摘要:C++利用Crypto++,vs2005环境下的RSA应用 基于Crypto++/Cryptopp的rsa密钥生成,rsa加密、解密,rsa签名、验签 Keys and Formats 使用Crypto++5.5.2完成RSA加解密,真正的把公钥放在字符串内,而不是放在文件内 C++代码重构——从C
        
阅读全文
 
        
     
    
        
        
摘要:目前有这样的应用场景,一个频道多人通讯人,每人对应一个通讯队列。多线程中查找频道和个人信息就需要锁定全局信息。 1锁定查找比较耗时。 如果全局信息以频道为索引。 2则查找个人信息需要遍历,极其耗时。 解决办法如下 双哈希表 分别记录个人信息索引与频道映射 ,频道索引与个人映射。这样知道个人信息或者频
        
阅读全文
 
        
     
    
        
        
摘要:一个简单的point坐标类 class Point {public:	Point():xval(0),yval(0){}	Point(int x,int y):xval(x),yval(y){}	int x()const { return xval; }	int y()const { return 
        
阅读全文
 
        
     
    
        
        
摘要:Vehicle 一个车辆的虚基类 class Vehicle {public:	virtual double weight()const = 0;	virtual void start() = 0;	virtual Vehicle* copy() = 0;	virtual ~Vehicle() {}
        
阅读全文
 
        
     
    
        
        
摘要:示例代码 1 #include "Util.h" 2 #include "MyAsio.h" 3 #include "TcpConnectionManager.h" 4 #include "SocketMessageRecvDispatchManager.h" 5 /* 6 作 者: itdef 7
        
阅读全文
 
        
     
    
        
        
摘要:资料地址 http://en.cppreference.com/w/cpp/thread/condition_variable/wait_until http://www.cnblogs.com/haippy/p/3252041.html 1 // asdasdwa.cpp: 定义控制台应用程序的入
        
阅读全文
 
        
     
    
        
        
摘要:本文是学习 boost源码的一些练习 参考文章来自 刘未鹏 C++的罗浮宫(http://blog.csdn.net/pongba) 目录 http://blog.csdn.net/pongba/article/category/37521 检测内嵌类型 检测一个类中是否存在指定的类型 那么只需要利
        
阅读全文
 
        
     
    
        
        
摘要:#pragma once #include "Util.h" #include "rapidjson/writer.h" #include "rapidjson/stringbuffer.h" #include "rapidjson/document.h" NAMESPACEBEGIN(DEF) //参考 https ://github.com/qicosmos/SmartDB1.03/b...
        
阅读全文