上一页 1 ··· 102 103 104 105 106 107 108 109 110 ··· 127 下一页

2017年12月11日

摘要: zt https://blog.poxiao.me/p/unicode-character-encoding-conversion-in-cpp11/ Unicode Unicode是计算机领域的一项行业标准,它对世界上绝大部分的文字的进行整理和统一编码,Unicode的编码空间可以划分为17个平面 阅读全文
posted @ 2017-12-11 14:25 itdef 阅读(8297) 评论(1) 推荐(0)

2017年12月9日

摘要: 1 // 111111111111.cpp: 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #include <iostream> 6 #include <string> 7 #include <vector> 8 #include <map> 9 10 阅读全文
posted @ 2017-12-09 23:51 itdef 阅读(322) 评论(1) 推荐(1)

2017年11月30日

摘要: 博客和书籍资料 来自该地址 https://www.cnblogs.com/qicosmos/category/490693.html 自行编写相应代码进行学习 1 // TimeTest.cpp: 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #inc 阅读全文
posted @ 2017-11-30 08:53 itdef 阅读(238) 评论(0) 推荐(0)

2017年11月28日

摘要: C++利用Crypto++,vs2005环境下的RSA应用 基于Crypto++/Cryptopp的rsa密钥生成,rsa加密、解密,rsa签名、验签 Keys and Formats 使用Crypto++5.5.2完成RSA加解密,真正的把公钥放在字符串内,而不是放在文件内 C++代码重构——从C 阅读全文
posted @ 2017-11-28 18:10 itdef 阅读(452) 评论(0) 推荐(0)

2017年11月17日

摘要: 目前有这样的应用场景,一个频道多人通讯人,每人对应一个通讯队列。多线程中查找频道和个人信息就需要锁定全局信息。 1锁定查找比较耗时。 如果全局信息以频道为索引。 2则查找个人信息需要遍历,极其耗时。 解决办法如下 双哈希表 分别记录个人信息索引与频道映射 ,频道索引与个人映射。这样知道个人信息或者频 阅读全文
posted @ 2017-11-17 23:36 itdef 阅读(361) 评论(0) 推荐(0)

2017年11月14日

摘要: 一个简单的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 阅读全文
posted @ 2017-11-14 09:22 itdef 阅读(273) 评论(0) 推荐(0)

2017年11月13日

摘要: Vehicle 一个车辆的虚基类 class Vehicle {public: virtual double weight()const = 0; virtual void start() = 0; virtual Vehicle* copy() = 0; virtual ~Vehicle() {} 阅读全文
posted @ 2017-11-13 22:21 itdef 阅读(289) 评论(0) 推荐(0)

2017年11月11日

摘要: 示例代码 1 #include "Util.h" 2 #include "MyAsio.h" 3 #include "TcpConnectionManager.h" 4 #include "SocketMessageRecvDispatchManager.h" 5 /* 6 作 者: itdef 7 阅读全文
posted @ 2017-11-11 13:33 itdef 阅读(345) 评论(1) 推荐(0)

2017年11月6日

摘要: 资料地址 http://en.cppreference.com/w/cpp/thread/condition_variable/wait_until http://www.cnblogs.com/haippy/p/3252041.html 1 // asdasdwa.cpp: 定义控制台应用程序的入 阅读全文
posted @ 2017-11-06 16:23 itdef 阅读(990) 评论(0) 推荐(0)

2017年11月4日

摘要: 本文是学习 boost源码的一些练习 参考文章来自 刘未鹏 C++的罗浮宫(http://blog.csdn.net/pongba) 目录 http://blog.csdn.net/pongba/article/category/37521 检测内嵌类型 检测一个类中是否存在指定的类型 那么只需要利 阅读全文
posted @ 2017-11-04 17:37 itdef 阅读(485) 评论(0) 推荐(0)
上一页 1 ··· 102 103 104 105 106 107 108 109 110 ··· 127 下一页

导航