Learn C++ STL

Lesson 3 of 9 · Iterators: The Thing Between a Container and an Algorithm

Module 11 · Iterators: The Thing Between a Container and an Algorithm

Full Programs: From a Backwards Playlist to Reading Every Number

Free with an accountReading

Lessons 01 and 02 named every iterator and every operation. This lesson puts them to work on six jobs a working programmer really meets. They run from a playlist played backwards to the shared start of two folder paths, each a little bigger than the last. Each one hands a pair of iterators to a container or to an algorithm, and the rest is done for it. Read the "new thing" line above each program first; it is what that program is for.

Checking what this lesson needs for you…

What is inside Full Programs: From a Backwards Playlist to Reading Every Number

  1. Program 1: a playlist played backwards
  2. Program 2: the passing marks, copied into a growing vector
  3. Program 3: one average for four containers
  4. Program 4: every number of the input, however many
  5. Program 5: two sorted lists walked in stepIntermediate
  6. Program 6: the shared start of two folder pathsIntermediate