I often see people using the term stream but I never get exactly what it means
C++ provides the following classes to perform output and input of characters to/from files:
ofstream: Stream class to write on files
ifstream: Stream class to read from files
fstream : Stream class to both read and write from/to files.
I always consider stream as like file handle we get to perform operations on file.
And what does standard mean?
In C++, the C++ Standard Library is a collection of classes and
functions.
The C++ Standard Library provides several everyday functions for tasks
such as finding the square root of a number.
Features of the C++ Standard Library are declared within the std.int
namespace.
How about stderr?
The standard error stream is the default destination for error messages and other diagnostic warnings. Like stdout, it is usually also directed to the output device of the standard console.
It is also possible to redirect stderr to some other destination from within a program using the freopen function.
Second, can we create our own stream? And why we need to create it?
This will guide you