
24 Jan
2012
24 Jan
'12
8:32 a.m.
On Tuesday 24 January 2012 03:43:13 vincegata wrote:
#include
#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) << " " ); int stop = 1; } It's easy. It reads until end of stdin. Press C-d? Correct behavior to me. Or I missed somthing and it don't response to you with trippled number?
Best regards, illusionoflife