VMS Help
CXXL, iostream_package

 *Conan The Librarian

  Classes in the iostream package provide methods to handle input and
  output streams, including the reading and writing of built-in data
  types. You can also extend certain methods described here to handle
  class types.

  This package includes, among others, the ios and streambuf classes,
  and the subclasses derived from these base classes.

  The istream (input stream) class supports input
  operations(extractions); the ostream (output stream) class supports
  output operations (insertions). The iostream class derives from both
  istream and ostream, and supports both extractions and insertions.

  The following stream objects are predefined:

  cin	An istream_withassign object linked to standard input

  cout	An istream_withassign object linked to standard output

  cerr	An ostream_withassign object linked to standard error that
 	supports unbuffered output

  clog	An ostream_withassign object linked to standard error that
 	supports buffered output

  To generate output, you apply the insertion operator (<<) to cout.
  For example:

 	cout << "Hello\n";

  Providing input is similar to generating output except that you apply
  the extraction operator (>>) to cin. For example:

 	int eye, jay;
 	cin >> eye >> jay;

  If you include these fragments of code in a program, your system
  expects users to type in two integer values (for eye and jay) from a
  terminal. The iostream package supplies predefined extraction and
  insertion operators for all built-in data types, including char*.

  The iostream package also supports file manipulation. To connect a
  specific file to your program, instantiate one of the following class
  types:

  ifstream	For file input
  ofstream	For file output
  fstream	For both input and output

  To format within character arrays, the iostream package includes the
  following associated class types:

  istrstream	For fetching characters from an array
  ostrstream	For storing characters into an array
  strstream	For both fetching and storing characters into an
 		array

  Additional Information (explode) :

  Close     Help