boost
jamin_liu_91
找到自己喜欢的,热爱自己热爱的,专注自己本职的!!!
展开
-
boost thread类创建和销毁线程
boost thread使用一、创建线程示例#include<iostream>#include<boost/thread.hpp>#include<windows.h>using namespace std;class Foo{public: void foo();};void Foo::foo(){ Sleep(2000); cout << "jaminliu" << endl; cout <&l原创 2020-12-06 13:56:30 · 723 阅读 · 0 评论 -
boost库 常用字符串处理函数
下面总结了boost库常用字符串处理函数头文件#include <boost/algorithm/string.hpp> using namespace std; using namespace boost; 代码:#include<iostream>#include<vector>#include<boost/algorithm/string.hpp>using namespace boost;using namespa原创 2020-11-22 00:12:54 · 576 阅读 · 0 评论 -
boost库读写Json字符串
boost库中property_tree0.头文件相关头文件为:#include <boost/property_tree/ptree.hpp>#include <boost/property_tree/json_parser.hpp>using namespace boost::property_tree;1.读Json字符串1.1 读简单值auto description = pt.get<std::string>("descripti原创 2020-11-09 08:27:13 · 799 阅读 · 0 评论 -
boost::asio的Tcp同步方式
博文部分参考链接:https://www.cnblogs.com/lidabo/p/8317196.htmlBoost.Asio是一个跨平台的网络及底层IO的C++编程库。头文件#include <boost/asio.hpp>命名空间using namespace boost::asio;using boost::asio::ip::tcp;ASIO库能够使用TCP、UDP、ICMP、串口来发送/接收数据,本文档介绍TCP协议的同步读写操作。所有使用asio原创 2020-10-18 21:33:52 · 821 阅读 · 0 评论