Skip to main content

Level 0


#Include<iostream>
At first of the program I use here #include<iostream> for including a standard library file which name is
“iostream “. This is use to declare standard input and output library .
If we want to use face book or Gmail by laptop , it is need to connect laptop with an Internet connection ,that’s like for use input & output library need to include “iostream”.
Using namespace std;
In std namespace all of the files in the C++ standard library declared . That’s why we have need to includ the “using namespace std”.
Int main()
This is main function where all of instruction Is write by programmer, actually its called the body of the program.
Int a;
Int is a variable type , there are different type of variable char, int, float, bool, double.
It is use decorate data category wise. All data are not do same job , as like as 1,2,3,….. Are use to count data, a,b,c,… are use to data initialize .
Cin>>a;
Cin >> is use to get input from standard input device, iostream is the header file library function.
Cout<<
Cout<< is use to provide output by standard output device, iostream is the header file library function.

Comments

Popular posts from this blog

Switch, Case, Default Statements In C++

Switch case is uses as alternative of if….else. When we need to use long term of if…else then we use switch case for reducing program execution time. syntax: Switch(variable){ Case value 1: Statement; Break; Case value 2: Statement; Break;

do...while loop in C++

The do while loop is very similar to while loop . In the while loop first check final condition then execute the statement. But in the do while loop first execute the statement then check the final condition. Syntax: Initialization; Do{ increment/decrement;   } while(Final condition)

Input & Output In C++ (Basic)

Cout<<”Print sentence”;     This statement is use to print out any kinds of sentence or string type values. Cout<<345;     This statement is use to print out any kinds of numeric numbers, without change. Cout<<variable;        This statement is use to print the value of variable. The value of the which variable we want to print, It is need to write that variable on variable place.