© Ivor Horton and Peter Van Weert 2018
Ivor Horton and Peter Van WeertBeginning C++17https://doi.org/10.1007/978-1-4842-3366-5_7

7. Working with Strings

Ivor Horton1  and Peter Van Weert2
Stratford-upon-Avon, Warwickshire, UK
Kessel-Lo, Belgium

This chapter is about handling textual data much more effectively and safely than the mechanism provided by a C-style string stored in an array of char elements:

In this chapter, you’ll learn
  • How to create variables of type string

  • What operations are available with objects of type string and how you use them

  • How to chain together various bits and pieces to form one single string

  • How you can search a string for a specific character or a substring

  • How you can modify an existing string

  • How to convert a string ...

Get Beginning C++17: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.