Content deleted Content added
grammar and clarity |
→C++ implementation: call f() on members of S, not the indices |
||
Line 60:
for(int i = 0; i < N; ++i) { // in C++11, can be used as "for(auto i : S)"
double y = f(S[i]);
if(y > 400) {
std::cout << i << " TOO LARGE\n";
|