C++ streams and c++ stream
classes
Adithya M
19NCBC1042
2nd sem,BCA
National college
What Is C++?
▪ C++, as the name suggests, is a superset of C.
▪ C++ can run most of C code while C cannot runC++ code.
▪ C follows the Procedural Programming Language(POP)
▪ while C++ is a language(procedural as well as object oriented)
▪ InC the data is not secured while in C++ data is secured(hidden) .
▪ EncapsulationOF Data Is Done InC++
▪ InC Importance is given on doingThings(Algorithm)While In C++
importance are given on Data (Object).
▪ C uses the top-down approach. while C++ uses the bottom-up.
What Is Stream?
What is its needs in c++?
A stream is nothing but a flow of data.
In the object-oriented programming, the streams are controlled
using
the classes.The operations with the files mainly consist of two
types.
They are read and write.
C++ provides various classes, to perform these operations.
The ios class is the base class.All other classes are derived from
the ios
class.These classes contain several member functions that
perform
input and output operations.
Different streams are used to represent
different kinds of data flow.
Each stream is associated with a particular
class, which contains member functions and
definitions for dealing with that particular kind
of data flow.
The stream that supplies data to the program in
known as an input stream. It reads the data
from the file and hands it over to the program.
The stream that receives data from the program
is known as an output stream. It writes the
received data to the file
C++
C++
C++
C++
C++
C++
C++
C++
C++

C++

  • 1.
    C++ streams andc++ stream classes Adithya M 19NCBC1042 2nd sem,BCA National college
  • 2.
    What Is C++? ▪C++, as the name suggests, is a superset of C. ▪ C++ can run most of C code while C cannot runC++ code. ▪ C follows the Procedural Programming Language(POP) ▪ while C++ is a language(procedural as well as object oriented) ▪ InC the data is not secured while in C++ data is secured(hidden) . ▪ EncapsulationOF Data Is Done InC++ ▪ InC Importance is given on doingThings(Algorithm)While In C++ importance are given on Data (Object). ▪ C uses the top-down approach. while C++ uses the bottom-up.
  • 3.
    What Is Stream? Whatis its needs in c++? A stream is nothing but a flow of data. In the object-oriented programming, the streams are controlled using the classes.The operations with the files mainly consist of two types. They are read and write. C++ provides various classes, to perform these operations. The ios class is the base class.All other classes are derived from the ios class.These classes contain several member functions that perform input and output operations.
  • 4.
    Different streams areused to represent different kinds of data flow. Each stream is associated with a particular class, which contains member functions and definitions for dealing with that particular kind of data flow. The stream that supplies data to the program in known as an input stream. It reads the data from the file and hands it over to the program. The stream that receives data from the program is known as an output stream. It writes the received data to the file