摘要: STL提供了accumulate函数的一个更为通用的版本。其定义如下: template T accumulate(InputIterator first,InputIterator last, T init,BinaryOperation binary_op){while (first!=last... 阅读全文
posted @ 2009-07-05 12:49 狼窝 阅读(187) 评论(0) 推荐(0) 编辑