tailieunhanh - Lecture C++ for everyone (2nd edition): Chapter 8 - Cay S. Horstmann

Chapter 8 - Streams. In this chapter, you will learn how to read and write files using the C++ stream library—a very useful skill for processing real world data. as an application, you will learn how to encrypt data. (the enigma machine shown at left is an encryption device used by Germany in World War II. | C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Chapter Eight: Streams Slides by Evan Gallagher C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved To be able to read and write files To convert between strings and numbers using string streams To process command line arguments To understand the concepts of sequential and random access Chapter Goals C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams A very famous bridge over a “stream” C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams A ship C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams in the stream C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams one at a time C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights . | C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Chapter Eight: Streams Slides by Evan Gallagher C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved To be able to read and write files To convert between strings and numbers using string streams To process command line arguments To understand the concepts of sequential and random access Chapter Goals C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams A very famous bridge over a “stream” C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams A ship C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams in the stream C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams one at a time C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams A stream of ships C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams an input stream to that famous city C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams No more ships in the stream at this time Let’s process what we just input C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved The C++ input/output library is based on the concept of streams. An input stream is a source of data. An output stream is a destination for data. The most common sources and destinations for data are the files on your hard disk. Reading and Writing Files C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved Streams This is a stream of characters. It could be from the keyboard or from a file. Each of these is just a .

TỪ KHÓA LIÊN QUAN