Skip to Content
Beginning C++
book

Beginning C++

by Ivor Horton
November 2014
Beginner content levelBeginner
632 pages
19h 31m
English
Apress
Content preview from Beginning C++

CHAPTER 7

image

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning C++

Beginning C++

Brian Foster
Advanced C++

Advanced C++

Gazihan Alankus, Olena Lizina, Rakesh Mane, Vivek Nagarajan, Brian Price
Expert C++

Expert C++

Vardan Grigoryan, Shunguang Wu

Publisher Resources

ISBN: 9781484200070Purchase book