Take this challenge to test your knowledge through hands-on problem solving.
- [Instructor] We are now ready for a challenge.…Here's the description.…Start with the birthday party code we just wrote…and add three functions to add the following features.…First, print a guest's data by index.…For example, print the data for guest number three.…Next, removing a guest by index.…And, finally, calculate the average age in the group.…You can do this with a floating point number.…
Feel free to make it work with vectors or with lists,…whichever you prefer.…Here's a suggestion for the test code you will write.…First, enter a series of Guest objects in a text file.…For example, five guests.…Then print them all out.…Next, print just one guest's information by index.…Let's say index number three.…Then remove the same guest by index.…Next, you should print all guests again…to assert the last removal.…
And, finally, print the average age.…This should take you about 30 minutes.…When you are done, watch the solution video…to see the code I wrote.…
- Why the STL is important
- Containers and iterators
- Vectors and lists
- Stacks and dequeues
- Associative containers
Skill Level Advanced
1. The Standard Template Library
2. Vectors and Lists
3. Stacks, Queues, and Deques
4. Associative Containers
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.