0
点赞
收藏
分享

微信扫一扫

visual studio 2022 boost_1_79_07 编译 安装 使用

点亮自己的那盏灯 2022-05-02 阅读 49

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 条评论