© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
I. Horton, P. Van WeertBeginning C++23https://doi.org/10.1007/978-1-4842-9343-0_7

7. Working with Strings

Ivor Horton1   and Peter Van Weert2
(1)
Stratford-upon-Avon, Warwickshire, UK
(2)
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 substring

  • How you ...

Get Beginning C++23: From Beginner to Pro now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.