Take this challenge to test your knowledge through hands-on problem solving.
- [Instructor] We are now ready for another challenge.…Here's the description.…Use the same web browser back button code…we just wrote,…and add the functionality of a forward button.…For this, you need to keep a history…of the URLs visited each time the back button was pressed.…And this new history has to be cleared…whenever a new address is entered.…So here is my suggestion for a testing code.…First, enter a series of URLs,…ten, for example,…then go back repeatedly, seven times, for example.…
Next, go forward a few times, but not to the last.…So for example, go forward three times.…Next, enter a new URL,…and assert that the forward stack is now empty.…You can do this by trying to go forward again.…And finally, you can go back a few URLs…just to make sure that the back stack is not empty,…twice, for example.…This challenge should take you about 15 minutes.…
When you're done, watch the solution video.…
- 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.