Basic Structure of C++ Program
#include<iostream> //header file
using namespacestd();
int main() //main function
{
//function body
};
Operators in C++:
There are three types of operators:
1.Arthematic Operators:
Arithmetic Operators are
+ Addition Operator
* Subtraction Operator
/ Division Operator
% Modulus Operator
2.Logical Operators:
Logical Operators are:
&& Logical And
|| Logical OR
3.Relational Operator:
<
>
<=
>=
!=
==