Skip to Main Content
Practical C++
book

Practical C++

by Rob McGregor
August 1999
Beginner to intermediate content levelBeginner to intermediate
912 pages
15h 44m
English
Que
Content preview from Practical C++

Chapter 30. Using Strings

<feature>
  • Learn about the standard C++ string data type

  • Investigate the basic_string class template

  • Examine the standard string operators

  • Explore the standard string member functions

  • Learn to use standard strings with C -style string functions

</feature>

Characters and Standard Strings

Strings of characters are the basis of written communication, and they are the basis of programming, too—we need them to write source code in an editor, to construct electronic documents, to generate reports, and so on. You’ve seen strings used in this book since Chapter 1: The ANSI C solution to strings is a null-terminated array of characters; although the Standard C++ Library provides full support for these primitive strings, they’re a bit ...

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

Practical C++ Programming, 2nd Edition

Practical C++ Programming, 2nd Edition

Steve Oualline
C++ Cookbook

C++ Cookbook

D. Ryan Stephens, Christopher Diggins, Jonathan Turkanis, Jeff Cogswell

Publisher Resources

ISBN: 0789721449Purchase book