摘要: 该算法在numeric头文件中定义。假设vec是一个int型的vector对象,下面的代码://sum the elements in vec starting the summation with the value 42int sum = accumulate(vec.begin() , vec... 阅读全文
posted @ 2014-08-17 21:43 依然老白兔 阅读(12594) 评论(0) 推荐(0) 编辑