Editing PEG:C++ Lesson 5 for Pascal Users
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: | ||
− | + | <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> |