Re:Why I absolutely love java
by vilya on Tuesday February 08, 2011 @09:06PM
(#2195925)
Here's a C++ 0x version, using a lambda function:
I wasn't sure about the lambda function syntax, but this compiles with g++ 4.5 (interestingly, even with the -Wall option, g++ doesn't warn about main not returning a value). Shows that even c++ can be shorter than java...
[ Parent
| on HN ]