Skip to Content
C++20 for Programmers: An Objects-Natural Approach, 3rd Edition
book

C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

by Paul Deitel, Harvey Deitel
April 2022
Intermediate to advanced
1012 pages
38h 1m
English
Pearson
Content preview from C++20 for Programmers: An Objects-Natural Approach, 3rd Edition

19. Stream I/O & C++20 Text Formatting

Objectives

In this chapter, you’ll:

  • Use C++ object-oriented stream input/output.

  • Input and output individual characters.

  • Use unformatted I/O for high performance.

  • Use stream manipulators to display integers in octal and hexadecimal formats.

  • Specify precision for input and output.

  • Display floating-point values in scientific and fixed-point notation.

  • Set and restore the format state.

  • Control alignment and padding.

  • Determine the success or failure of input/output operations.

  • Tie output streams to input streams.

  • See many of C++20’s concise and convenient text-formatting capabilities, including presentation types to specify data types to format, positional arguments, field widths, alignment, numeric formatting ...

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

Designing Data-Intensive Applications, 2nd Edition

Designing Data-Intensive Applications, 2nd Edition

Martin Kleppmann, Chris Riccomini

Publisher Resources

ISBN: 9780136905776