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 SumFirst(const std::vector<std::pair<int,int> >& v) |
You may contact me if you have an STL solution...
Thanks to 'ofwolfandman':
#include <functional> |
Thanks to 'ofwolfandman':
#include <functional> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.