O'Reilly logo

C++ How to Program, Sixth Edition by H. M. Deitel - Deitel & Associates, Inc., P. J. Deitel - Deitel & Associates, Inc.

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

Chapter 18. Class string and String Stream Processing

 

Suit the action to the word, the word to the action; with this special observance, that you o’erstep not the modesty of nature.

 
 --William Shakespeare
 

The difference between the almost-right word and the right word is really a large matter—it’s the difference between the lightning bug and the lightning.

 
 --Mark Twain
 

Mum’s the word.

 
 --Miguel de Cervantes
 

I have made this letter longer than usual, because I lack the time to make it short.

 
 --Blaise Pascal

OBJECTIVES

In this chapter you’ll learn:

  • To use class string from the C++ Standard Library to treat strings as full-fledged objects.

  • To assign, concatenate, compare, search and swap strings.

  • To determine string characteristics.

  • To find, replace ...

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