Editing PEG:C++ Lesson 5 for Pascal Users

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{C++ Lesson for Pascal Users|5}}
+
<center>[[PEG:C%2B%2B_Lesson_4_for_Pascal_Users|← Previous Lesson]] | [[PEG:C%2B%2B_Lesson_6_for_Pascal_Users|Next Lesson →]]<br><br></center>
 
I/O is the total of all data transfer between a program's memory and the "outside world", including the screen/keyboard, disk drives, and other programs. In C++, just as in Pascal, I/O is abstracted to devices known as ''files''. A ''file'' represents any source or destination for data. Hence, each file on your hard disk is an I/O file; your program usually starts with a file for the keyboard and two files for the screen; and special files called pipes enable one program to communicate with another.<br><br>
 
I/O is the total of all data transfer between a program's memory and the "outside world", including the screen/keyboard, disk drives, and other programs. In C++, just as in Pascal, I/O is abstracted to devices known as ''files''. A ''file'' represents any source or destination for data. Hence, each file on your hard disk is an I/O file; your program usually starts with a file for the keyboard and two files for the screen; and special files called pipes enable one program to communicate with another.<br><br>
 
In C++, files are further abstracted to ''streams''. A ''stream'', loosely speaking, is some object that allows data to be read and/or written. Most streams allow additional operations, but read and write are fundamental.<br><br>
 
In C++, files are further abstracted to ''streams''. A ''stream'', loosely speaking, is some object that allows data to be read and/or written. Most streams allow additional operations, but read and write are fundamental.<br><br>

Please note that all contributions to PEGWiki are considered to be released under the Attribution 3.0 Unported (see PEGWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)

Templates used on this page: