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 结果 请数字后回车