Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Studio 12.3: C++ User's Guide Oracle Solaris Studio 12.3 Information Library |
3. Using the C++ Compiler Options
6. Creating and Using Templates
9. Improving Program Performance
10. Building Multithreaded Programs
12. Using the C++ Standard Library
13.2 Basic Structure of iostream Interaction
13.3 Using the Classic iostream Library
13.3.1.1 Defining Your Own Insertion Operator
13.3.1.2 Handling Output Errors
13.3.3 Defining Your Own Extraction Operators
13.3.4 Using the char* Extractor
13.3.5 Reading Any Single Character
13.3.10 Using iostreams With stdio
13.4.1 Dealing With Files Using Class fstream
13.4.1.2 Declaring an fstream Without Specifying a File
13.4.1.3 Opening and Closing Files
13.4.1.4 Opening a File Using a File Descriptor
13.4.1.5 Repositioning Within a File
13.7.1 Using Plain Manipulators
13.7.2 Parameterized Manipulators
13.8 strstream: iostreams for Arrays
13.9 stdiobuf: iostreams for stdio Files
13.10 Working Withstreambuf Streams
13.10.1 streambuf Pointer Types
C++, like C, has no built-in input or output statements. Instead, I/O facilities are provided by a library. The C++ compiler provides both the classic implementation and the ISO standard implementation of the iostream classes.
By default, the classic iostream classes are contained in libiostream. Use libiostream when you have source code that uses the classic iostream classes and you want to compile the source in standard mode. To use the classic iostream facilities in standard mode, include the iostream.h header file and compile using the -library=iostream option.
The standard iostream classes are available only in standard mode, and are contained in the C++ standard library, libCstd.
This chapter provides an introduction to the classic iostream library and provides examples of its use. This chapter does not provide a complete description of the iostream library. See the iostream library man pages for more details. To access the classic iostream man pages type the command: man -s 3CC4 name
See 11.4.1.1 Note About Classic iostreams and Legacy RogueWave Tools