CS 171 Unit 5 Working with Data Files

CS 171 Unit 5 Working with Data Files - CS 171 Unit 5...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 171 Unit 5 Working with Data Files Furman Haddix Assistant Professor Spring 2011 Minnesota State University, Mankato
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Reading Assignment / Exam 1 Reading Assignment Chapter 5 First Exam: Tuesday, February 22 Covers Units 1-5 Will review solutions at around 4 p.m. Bring Writing instrument Simple calculator Provided Exam will have working space so no scratch paper needed Exam aid (posted on D2L).
Background image of page 2
Working with Data Files Stream Libraries Defining File Streams Reading and Generating Data Files Error Checking
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Stream Class Hierarchy iostream library #include <iostream> istream objects support standard input. ostream objects support standard output. fstream library #include <fstream> ifstream objects support file input. ofstream objects support file output.
Background image of page 4
Standard Stream Objects Standard stream objects are initialized by the compiler to stream data to and from the system's standard input and output devices. ( iostream ) cin cout cerr
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Standard Input Device cin object of type istream cin is defined by the compiler to stream input from standard input. some associated operators and member functions: getline() get() >>
Background image of page 6
Standard Output Device cout object of type ostream cout is defined by the compiler to stream output to standard output some associated operators and member functions: put () <<
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Files One View Persistent secondary storage for memory
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 19

CS 171 Unit 5 Working with Data Files - CS 171 Unit 5...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online