Skip to main content
added 27 characters in body
Source Link
Ferruccio
  • 101.1k
  • 38
  • 232
  • 305

C++ Streams are extensible in two ways that C files are not:

  • You can create your own stream type and all streamable objects will automatically work with it.
  • AnyIf stream operators are defined for a class, any object of that implements stream operatorsclass can be written to and read from any stream.

C++ Streams are extensible in two ways that C files are not:

  • You can create your own stream type and all streamable objects will automatically work with it.
  • Any class that implements stream operators can be written to and read from any stream.

C++ Streams are extensible in two ways that C files are not:

  • You can create your own stream type and all streamable objects will automatically work with it.
  • If stream operators are defined for a class, any object of that class can be written to and read from any stream.
Source Link
Ferruccio
  • 101.1k
  • 38
  • 232
  • 305

C++ Streams are extensible in two ways that C files are not:

  • You can create your own stream type and all streamable objects will automatically work with it.
  • Any class that implements stream operators can be written to and read from any stream.