@jc
多谢指点,不过对于bjam的install 命令不是很了解,还请详说
@sunoom
就象楼上说的那个格式,这是在网上找到的代码:
#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) << " " );
}

运行后输入1 2 3 结果为3 6 9

posts - 1, comments - 5, trackbacks - 0, articles - 0

Copyright © ZLD