Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
This is the answer of Exercise #9: No for-loops.
Replace the for-loop. You will need:
int ProductNonZeroPositives(const std::vector<int>& v) |
//From http://www.richelbilderbeek.nl/CppAccumulate_if.htm |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.