CHAPTER 7
Working with Strings
This chapter is about handling textual data much more effectively and safely that 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 you can search a string for a specific character or a substring
- How you can modify an existing string
- How you can work with strings containing Unicode characters
- What a raw string literal is
A Better Class of String
You’ve seen how you can use an array of elements type char to store a null-terminated ...
Get Beginning C++ 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.