Skip to Main Content
Visual C++ 2008: How to Program, Second Edition
book

Visual C++ 2008: How to Program, Second Edition

by P. J. Deitel, H. M. Deitel, D. T. Quirk
December 2007
Intermediate to advanced content levelIntermediate to advanced
1552 pages
46h 20m
English
Pearson
Content preview from Visual C++ 2008: How to Program, Second Edition

Chapter 17. Stream Input/Output and Files

 

Consciousness ... does not appear to itself chopped up in bits ... A “river” or a “stream” are the metaphors by which it is most naturally described.

 
 --William James
 

All the news that’s fit to print.

 
 --Adolph S. Ochs
 

Remove not the landmark on the boundary of the fields.

 
 --Amenehope

OBJECTIVES

In this chapter you’ll learn:

  • To use Visual C++ object-oriented stream input/output.

  • To format input and output.

  • The stream-I/O class hierarchy.

  • To use stream manipulators.

  • To control justification and padding.

  • To determine the success or failure of input/output operations.

  • To tie output streams to input streams.

  • To create, read, write and update files.

  • Sequential file processing.

Outline

 

17.1

Introduction

17.2

Streams

 

17.2.1 ...

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

Ivor Horton's Beginning Visual C++ 2012

Ivor Horton's Beginning Visual C++ 2012

Ivor Horton

Publisher Resources

ISBN: 9780136085652Purchase book