C++ 01: Introduction to C++
- Get link
- X
- Other Apps
Introduction
|
Function/Object |
Descript |
|
cout |
The
Object cout is used with an insertion operator (<<) to send and recive
a message or output of a program or a value of a variable to screen. In
simple words, cout is used to display any message or standard output to the
screen. This object is available in the header file <iostream.h> Syntax:
|
|
cin |
The object cin is used within an extraction operator (>>) to
read the input entered from the keyboard by the user and place the data in
the appropriate variable. This object is available in the header file
<iostream.h> Syntax: ·
cin>>variable1>>variable2>>..; |
|
void
clrscr(); |
This
function is used to clesr the screen output. It is defined in the conio.h
header file. |
|
int getch(); |
This function get’s a charcter from console. It is defined in the header
file conio.h |
|
“\n”
or <<endl; |
It
print a new line characters. In simple words we can say that it encounters an
end of line. |
- Get link
- X
- Other Apps

Comments
Post a Comment