zl程序教程

您现在的位置是:首页 >  后端

当前栏目

dev c++ Boost库的安装

C++安装 Dev Boost
2023-09-14 08:57:55 时间

dev c++ 的boost库的安装步骤

 

  然后点击“check for updates”按钮

 

 

最后点击“Download selected”按钮,下载完成后安装....

 

给dev添加boost库文件,找到之前安装的目录

 

#include iostream 

#include string 

#include cstring 

#include list 

#include map 

#include boost/regex.hpp 

int main(){

 string s = "1+1=2", first, second;

 boost::regex re("=");

 boost::sregex_token_iterator begin(s.begin(),s.end(),re,-1), end;

 if(begin != end){

 first = *begin; 

 ++begin;

 if(begin != end){

 second = *begin;

 ++begin;

 cout first " " second endl;

 return 0;

}