O'Reilly logo

C++ Without Fear: A Beginner’s Guide That Makes You Feel Smart by Brian Overland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

7 Strings: Analyzing the Text

Most computer programs, at some point in their life, have to communicate with a human being. Especially as you begin to write programs to be used by other people, it’s important to give the user a clue to what’s going.

For the console-based applications in this book, you have to use words and text in English or some other natural language (as opposed to a computer language—though sometimes I suspect that for some programmers, computer language may actually come more naturally). Working with language involves the use of text strings.

Using strings to print simple messages is easy enough. Strings get more interesting when you pick apart, combine, or analyze them. That’s what this chapter is all about.

The last two ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required