< Previous | Contents | Next >
1. Write a program using vectors and iterators that allows a user to main- tain a list of his or her favorite games. The program should allow the user to list all game titles, add a game title, and remove a game title.
2. Assuming that scores is a vector that holds elements of type int, what’s wrong with the following code snippet (meant to increment each element)?
vector<int>::iterator iter;
//increment each score
for (iter = scores.begin(); iter != scores.end(); ++iter)
{
iter++;
}
3. Write pseudocode for the Word Jumble game from Chapter 3.
This page intentionally left blank