11 2017 档案

c++11 时间相关操作练习
摘要:博客和书籍资料 来自该地址 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 阅读(219) 评论(0) 推荐(0) 编辑

C++ Crypto++ RSA加密资料收集
摘要: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 阅读(421) 评论(0) 推荐(0) 编辑

多线程查找大量数据加锁的速度降低
摘要:目前有这样的应用场景,一个频道多人通讯人,每人对应一个通讯队列。多线程中查找频道和个人信息就需要锁定全局信息。 1锁定查找比较耗时。 如果全局信息以频道为索引。 2则查找个人信息需要遍历,极其耗时。 解决办法如下 双哈希表 分别记录个人信息索引与频道映射 ,频道索引与个人映射。这样知道个人信息或者频 阅读全文

posted @ 2017-11-17 23:36 itdef 阅读(321) 评论(0) 推荐(0) 编辑

c++沉思录 学习笔记 第六章 句柄(引用计数指针雏形?)
摘要:一个简单的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 阅读(242) 评论(0) 推荐(0) 编辑

c++沉思录 学习笔记 第五章 代理类
摘要: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 阅读(256) 评论(0) 推荐(0) 编辑

boost asio 一个聊天的基本框架
摘要:示例代码 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 阅读(319) 评论(1) 推荐(0) 编辑

c++11 并发 条件变量 超时等待的代码练习
摘要:资料地址 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 阅读(909) 评论(0) 推荐(0) 编辑

boost学习 内嵌类型检测 与 any 的代码练习
摘要:本文是学习 boost源码的一些练习 参考文章来自 刘未鹏 C++的罗浮宫(http://blog.csdn.net/pongba) 目录 http://blog.csdn.net/pongba/article/category/37521 检测内嵌类型 检测一个类中是否存在指定的类型 那么只需要利 阅读全文

posted @ 2017-11-04 17:37 itdef 阅读(447) 评论(0) 推荐(0) 编辑

rapidjson 的封装学习
摘要:#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... 阅读全文

posted @ 2017-11-04 13:38 itdef 阅读(1384) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示