假设vec是一个int型的vector对象,下面的代码:. //sum the elements in vec starting the summation with the value 42 int sum = accumulate(vec.begin ...
確定! 回上一頁