TOPIC: C++ Header Files and Operators
C++ Header Files
Let us see how the header files are used:
C++ Program
Code written in Visual Studio Code
C++ Program
Code written in Visual Studio Code
.cpp file
.h file
Operators
🤔 What do you mean by Operators?
➡️ Operators are the symbols which are used to perform operations (like Addition, Subtraction, Multiplication,
Division, Relational, Logical, etc.) on Operands (like Variables a and b, x and y, newVar, sum, etc.). The
symbols include +, -, *, /, %, ++, --, ==, etc.
These Operators include +, -, *, /, %, ++, --
Example: a + b, a - b
This Operator include =
Example: newVar = 45
These Operators include ==, !=, >=, <=,>, <
Example: a >= b, a < b
These Operators include logical AND (&&), logical OR (||), logical NOT (!)
Example: a &&b, a || b
C++ Program
Code written in Visual Studio Code
"First solve the problem. Then, write the code."
- John Johnson
So, we have discussed about the C++ Header Files and Operators. More blogs coming soon.