C++ Tutorials
The Blog is for those Who are Intrested in C++ Programming.
Pages
Home
C++
Downloads
Books
Videos
About Me
Contact Us
Tuesday, 7 July 2015
Use of cout and cin :
How to write program using cout and cin statements.
User enter age and then display it's age.
Use of cout in C++ :
cout is used for
displaying data on the screen.
The operator << called as
insertion operator
or
put to operator.
Insertion operator is
similar to the printf()
operation in C.
cout is the
object of ostream class.
Example of cout :
void main(){
int a=10;
int b=20;
cout<<a<<b;
is similar to -
cout<<a;
cout<<b;
Output:
1020
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)