(upbeat music)
- [Instructor] For this challenge,
you will read a text file, decode it, store it,
state it in a structure, and print the results
using the standard template library, or STL.
This will be the same challenge as in chapter eight,
but with the STL.
Instead of the standard library,
the text file represents items in an inventory.
Each line looks like this.
Notice the tab characters,
which I've highlighted in red here.
Each line in the file has two tabs
separating it's three fields.
The first field is the SKU number, SKU stock keeping unit.
Here, just one, two, three, and four.
The second field is the name of the item.
And the third field is the description.
The file is named items.text,
and you'll find it in chapter nine of the exercise files.
The output of your challenge will look something like this.
The challenge will use a lot of your knowledge
from this course,
including loops, operators, and the STL with file IO.
Expect this one to take a little longer
than some of the others, perhaps a half hour or longer.
Feel free to take your time and experiment.