* Function Overloading
*
Virtual Functions.
Starting with the C++
Programming :
Consider the following
program code ,
#include<iostream.h>
#include<conio.h>
void main( )
{
int a,b,c;
clrscr();
cout<<endl<<"Enter the value of a and b
:";
cin>>a>>b;
//calculate the sum
c=a+b;
//display the sum
cout<<endl<<"Sum = " <<c;
getch();
}
(a)
#include<iostream.h>
This statement will include the header file
<iostream.h> in our program .
iostream stands for Input Output Stream .
This header file will contain the entire class hierarchy.
(b)
cout<<endl<<"Enter the value of a and b :" ;
cin>>a>>b;
Buffer : The Buffer is the
section of the primary memory which is used for input and output .
Stream : In C++ and Java ,
the buffer is known as streams.Stream refers to the flow of bytes.The Stream
can be considered as a logical
device which either consumes or produces information.
There are two types of
streams :
(i) Input Stream
(ii) Output Stream
(To be continue...)
No comments:
Post a Comment