Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Multiply is a math code snippet to multiply each element in a std::vector by a certain value.
Multiply can be defined in multiple ways:
Prefer algorithms over loops [1][2].
#include <algorithm> |
This is the answer of Exercise #9: No for-loops.
#include <algorithm> |
This is the answer of Exercise #9: No for-loops.
#include <algorithm> |
#include <vector> |
Prefer algorithms over loops [1][2].
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.