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:
#include <algorithm> |
#include <algorithm> |
Sadly, this does not work and I do not understand why yet...
bool IsIdTaken(const std::vector<const Person*>& v, const int id) |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.