Ch. 10 Input/Output

5/31/00


Click here to start


Table of Contents

Ch. 10 Input/Output

Introduction

The stdio Library

Examples of stdio

Formatted Output

Examples of Formatted Output

int i = 3;

The Stream I/O Facility

Figure 10.2 Various Overloading Versions of the << Operator

inline char digitCharacter(unsigned int value)

Examples of Stream I/O

Another Examples

Stream Input

String Streams

# include <sstream>

File Streams

A conversion operator changes a file stream into a boolean value, whereby the value indicates the success or failure of the file opening operation.

An Example Program

cout << "total number of words " << wordCount << endl; if (wordCount > 0) cout << "average word length "

Author: Seung Sean Yoo

Email: budd@cs.orst.edu

Home Page: http://www.cs.orst.edu/~budd