Linux下安裝Boost庫
下載使用安裝包
創建文件夾
將下載好的壓縮包傳入服務器中
檢查是否傳輸成功
解壓壓縮文件到指定目錄
tar -zxvf boost_1_69_0.tar.gz
進入源碼文件目錄查看內容
運行bootstrap.sh工程編譯構建程序
運行生成的b2程序
./b2
安裝boost
./b2 install
測試
結束
Linux下 boost庫安裝成功
tar -zxvf boost_1_69_0.tar.gz
./b2
./b2 install
Linux下 boost庫安裝成功
#include <boost/lexical_cast.hpp> using boost::lexical_cast; #include <i
迭代MAP map<int,int> mi; for (int x=0;x<10;x++) { mi.insert(make_pair(x,x+1)); } typedef map<int,