
Jumping into C++

void print_string (const string& str)
Alex Allain • Jumping into C++
cout << *itr;
Alex Allain • Jumping into C++
Come up with a way to solve the problem by working with the solution to a smaller version of the same problem. Solve the base case.
Alex Allain • Jumping into C++
vector ::iterator itr = vec.begin();
Alex Allain • Jumping into C++
name_to_email.erase( "Alex Allain" );
Alex Allain • Jumping into C++
The newline itself will be discarded—your input will contain everything up to the newline,
Alex Allain • Jumping into C++
vector ::iterator
Alex Allain • Jumping into C++
for ( vector ::iterator itr = vec.begin(); itr != vec.end(); ++itr )
Alex Allain • Jumping into C++
#include #include using namespace std; map<string, string> name_to_email;