Đang chuẩn bị liên kết để tải về tài liệu:
Module 11 The C++ I/O System

Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG

The most fundamental point to understand about the C++ I/O system is that it operates on streams. A stream is an abstraction that either produces or consumes information. A stream is linked to a physical device by the C++ I/O system. All streams behave in the same manner, even if the actual physical devices they are linked to differ. Because all streams act the same, the same I/O functions and operators can operate on virtually any type of device. For example, the same method that you use to write to the screen can be used to write to a disk. | Module 11 The C I O System Table of Contents CRITICAL SKILL 11.1 Understand I O streams.2 CRITICAL SKILL 11.2 Know the I O class hierarchy.3 CRITICAL SKILL 11.3 Overload the and operators.4 CRITICAL SKILL 11.4 Format I O by using iso member functions.10 CRITICAL SKILL 11.5 Format I O by using manipulators.16 CRITICAL SKILL 11.6 Create your own manupulators.18 CRITICAL SKILL 11.7 Open and close files.20 CRITICAL SKILL 11.8 Read and write text files.23 CRITICAL SKILL 11.9 Read and write binary files.25 CRITICAL SKILL 11.10 Know additional file functions.29 CRITICAL SKILL 11.11 Use randon access files I O.35 CRITICAL SKILL 11.12 Check I O system status.37 Since the beginning of this book you have been using the C I O system but you have been doing so without much formal explanation. Since the I O system is based upon a hierarchy of classes it was not possible to present its theory and details without first discussing classes and inheritance. Now it is time to examine the C I O system in detail. The C I O system is quite large and it won t be possible to discuss here every class function or feature but this module will introduce you to the most important and commonly used parts. Specifically it shows how to overload the and operators so that you can input or output objects of classes that you design. It describes how to format output and how to use I O manipulators. The module ends by discussing file I O. Old vs. Modern C I O There are currently two versions of the C object-oriented I O library in use the older one that is based upon the original specifications for C and the newer one defined by Standard C . The old I O library is supported by the header file iostream.h . The new I O library is supported by the header 1 C A Beginner s Guide by Herbert Schildt iostream . For the most part the two libraries appear the same to the programmer. This is because the new I O library is in essence simply an updated and improved version of the old one. In fact the vast majority

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.