2

CHAPTER

Input and Output inC++

CHAPTEROUTLINE —• 2.1 Introduction
—• 2.2 Streams in C++
—• 2.3 Pre-Defined Streams
—• 2.4 Buffering
—• 2.5 Stream Classes
—• 2.6 Formatted and Unformatted Data
—• 2.7 Unformatted Console I/O Operations
—• 2.8 Typecasting with cout Statement
—• 2.9 Member Functions of Istream Class
—• 2.10 Formatted Console I/O Operations
—• 2.11 BIT Fields
—• 2.12 Flags without BIT Field
—• 2.13 Manipulators
—• 2.14 User-Defined Manipulators
—• 2.15 Manipulator with one Parameter
—• 2.16 Manipulators with Multiple Parameters
—• 2.17 Custom Built I/O Objects

2.1 INTRODUCTION

Applications generally involve reading a large amount of data from input devices and sending them to the output devices. ...

Get Object-Oriented Programming with ANSI and Turbo 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.