cout and cin is one of the standard library function which are used for input/output purpose.
cout Standard out Put Function:
cout is an instance of iostream class and standard output, which usually is the display screen. The cout is used in conjunction with the stream insertion operator, which is written as << which are two less than signs.
Where cin is used as standard input mostly keyboard. cin is also used with conjunction with extraction operator, which is written as >> (i.e., two "greater than" signs). This operator is then followed by the variable where the extracted data is stored.
For example:
#include void main(void) { int marks; cout<<"Please Enter The Marks:"; cin>>marks; }
With cout and cin we can do more then one output or inut in one line
For example
#include void main(void) { int x,y; cout<<"This is First Line"<<"\n"<<"This is Second Line"<<"\n"<<"This is Third Line"; cin>>x>>y; // this statment will take the value of two variable x and y }
Declaring and Initializing Local Variable in C
Declaring and Initializing Global Variable in C Language
Printf Function In C Language
Sacnf Function In C Language
for Loop in C Language
While Loop in C Language
Do While Loop in C Language
Switch Case Statement IN C
IF -Else Statement IN C
Break Statement IN C /C++
User Define Function IN C /C++
Cout/Cin Function IN C /C++
Array IN C /C++
Two Dimensional Array IN C /C++
String In IN C /C++
Pointer In IN C /C++
Const and volatile keyword IN C /C++
Class and Object in C++
Function Over Loading in C++
Character Array In C++
Constructor in C++
Operator overloading in C++
Function Templates in C++
ATM Sample Project In Simple C Language
Find Area of Shape Using Function In C++