Say you have an int array[N] . You can simply do: int sum = 0; for(auto& num : array) sum ...
確定! 回上一頁