Using these templates
Vector<double> v(100);
for(int i = 0; i < 100; ++i)
v[i] = i * i;
double s = sum(v, 100);
Previous slide
Next slide
Back to first slide
View graphic version