visual studio 2022 boost_1_79_07 编译 安装 使用

阅读 49

2022-05-02

1 下载 boost 1.97

Boost C++ Librarieshttps://www.boost.org/2 编译 boost

2.1 打开

 

 

 

 2.2 编译 boost

2.3 环境搭建

 

 

 3 boost 项目

 

 

 4 测试代码

#include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>

int main()
{
    using namespace boost::lambda;
    typedef std::istream_iterator<int> in;

    std::for_each(
        in(std::cin), in(), std::cout << (_1 * 3) << " ");
}

 5 结果 请数字后回车

 

 

精彩评论(0)

0 0 举报