< Previous | Contents | Next >
string objects, which you met briefly in Chapter 1, are the perfect way to work with sequences of characters, whether you’re writing a complete word puzzle game or simply storing a player’s name. A string is actually an object, and it provides its own set of member functions that allow you to do a range of things with the string object—everything from simply getting its length to performing complex character substitutions. In addition, strings are defined so that they work intuitively with a few of the operators you already know.