上一页 1 ··· 115 116 117 118 119 120 121 122 123 ··· 125 下一页

2016年3月6日

摘要: 代码并未在作者github上提供 将书中代码敲至vc 并调试运行 依赖BOOST库 编译环境vs2015 boost1.59 // Client.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <boost/thread.hpp> #incl 阅读全文
posted @ 2016-03-06 22:16 itdef 阅读(753) 评论(0) 推荐(0)

2016年3月4日

摘要: 代码网络收集 修改了一个编译的小问题 客户端 // Client.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> #include <boost/asio.hpp> int main() { namespace ip = 阅读全文
posted @ 2016-03-04 15:42 itdef 阅读(583) 评论(0) 推荐(0)

2016年2月23日

摘要: http://www.gamedev.net/blog/950/entry-2249317-a-guide-to-getting-started-with-boostasio/ 可以多个线程拥有io_service service; service.run();但是不能一个线程运行多个service 阅读全文
posted @ 2016-02-23 10:18 itdef 阅读(299) 评论(0) 推荐(0)

2016年1月23日

摘要: /**************************************************************技术博客http://www.cnblogs.com/itdef/技术交流群群号码:324164944欢迎c c++ windows驱动爱好者 服务器程序员沟通交流*****... 阅读全文
posted @ 2016-01-23 20:03 itdef 阅读(216) 评论(0) 推荐(0)

2015年12月5日

摘要: 为一个类添加额外的功能装饰 参考 大话设计模式 阅读全文
posted @ 2015-12-05 13:43 itdef 阅读(208) 评论(0) 推荐(0)

2015年11月29日

摘要: 运行显示: Sample...****Sample::cout = 1****Sample::cout = 1****Sample::cout = 1****Sample::cout = 1****Sample::cout = 1****Sample::cout = 1****Sample::cou 阅读全文
posted @ 2015-11-29 16:01 itdef 阅读(326) 评论(0) 推荐(0)

2015年11月28日

摘要: // RadomTest.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include using namespace std;int main(){ std::default_random_engine ran... 阅读全文
posted @ 2015-11-28 12:06 itdef 阅读(329) 评论(0) 推荐(0)

2015年11月17日

摘要: 使用ostream流创建写入log日志文件使用宏 配置文件大小和间隔时间 当创建文件时间间隔或文件大小大于指定数字 则创建新文件文件名由时间自动命名/**************************************************************技术博客http://ww... 阅读全文
posted @ 2015-11-17 14:02 itdef 阅读(334) 评论(0) 推荐(0)

2015年7月19日

摘要: /**************************************************************技术博客http://www.cnblogs.com/itdef/技术交流群群号码:324164944欢迎c c++ windows驱动爱好者 服务器程序员沟通交流*****... 阅读全文
posted @ 2015-07-19 11:08 itdef 阅读(428) 评论(0) 推荐(0)

2015年6月28日

摘要: 关于学习 《深入应用c++11》的代码笔记:c++11之前是这么实现的templateclass Singleton{public: static T* Instance(){ if (m_pInstance == nullptr) m_pInstance = new T(); return... 阅读全文
posted @ 2015-06-28 22:56 itdef 阅读(1109) 评论(0) 推荐(0)
上一页 1 ··· 115 116 117 118 119 120 121 122 123 ··· 125 下一页

导航