Programming in C++

9/20/99


Click here to start


Table of Contents

Programming in C++

Extraction Operator ( >> )

Input Statements

Whitespace Characters Include . . .

Extraction Operator >>

At keyboard you type: A[space]B[space]C[Enter]

At keyboard you type: [space]25[space]J[space]2[Enter]

Keyboard and Screen I/O

Diskette files for I/O

To Use Disk I/O, you must

Statements for using Disk I/O

What does opening a file do?

Another example using >>

Another way to read char data

At keyboard you type: A[space]B[space]C[Enter]

Use function ignore( ) to skip characters

An example using cin.ignore( )

Another example using cin.ignore( )

Interactive I/O

Prompting for Interactive I/O

File I/O Mileage Program

C++ Code Continued

End of Program

Stream Fail State

Functional Decomposition

Functional Decomposition

Module Structure Chart

Object-Oriented Design

More about OOD

Object-Oriented Design (OOD)

Why use OOD with large software projects?

Author: Sylvia Sorkin

Email: ssorkin@essex.cc.md.us

Home Page: http://www.essex.cc.md.us/Essex/People/ssorkin/index.html