随笔分类 -  Boost库

摘要:客户端 1 #include <iostream> 2 #include<string> 3 #include <boost/asio.hpp> 4 #include <stdlib.h> 5 using namespace std; 6 using namespace boost::asio; 7 阅读全文
posted @ 2018-03-26 18:54 喵小喵~ 阅读(2273) 评论(0) 推荐(0)
摘要:客户端 1 #include <boost/asio.hpp> 2 #include <iostream> 3 #include <stdlib.h> 4 using namespace std; 5 using namespace boost::asio; 6 7 void main() 8 { 阅读全文
posted @ 2018-03-26 18:50 喵小喵~ 阅读(889) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 using namespace boost; 11 12 13 void print(std::ostream &os,int i)... 阅读全文
posted @ 2018-03-26 17:18 喵小喵~ 阅读(121) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 using namespace boost; 11 12 13 //function函数包装器 14 void mainC() 15... 阅读全文
posted @ 2018-03-26 17:06 喵小喵~ 阅读(161) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 9 //绑定函数的默认值,继承二进制函数类的所有类容 10 class add :public std::binary_function 11 { 12 13 public: 14 void ... 阅读全文
posted @ 2018-03-26 16:38 喵小喵~ 阅读(198) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include//区别 4 using namespace std; 5 6 void main() 7 { 8 boost::array myarray = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }; 9 boost::array::iterator ibegin = myarr... 阅读全文
posted @ 2018-03-26 15:49 喵小喵~ 阅读(240) 评论(0) 推荐(0)
摘要:一、前言 好好研究下大名鼎鼎的Boost库。 二、Boost安装 2.1 Boost官网下载Boost最新版Version 1.55.0 2.2将下载压缩包解压到本地 解压后可看到目录下有个bootstrap.bat文件。 2.3打开cmd命令窗体,执行bootstra.bat文件 运行下面命令,详 阅读全文
posted @ 2018-03-26 15:46 喵小喵~ 阅读(224) 评论(0) 推荐(0)