Basic syntax and functions from the C++ programming language.
It prints output on the screen
It takes input from the user
The data type is the type of data
Typically a single octet(one byte). It is an integer type
The most natural size of integer for the machine
A single-precision floating-point value
A double-precision floating-point value
Represents the absence of the type
A comment is a code that is not executed by the compiler, and the programmer uses it to keep track of the code.
It is a collection of characters surrounded by double quotes
It is used to concatenate two strings
It returns the length of the string
C++ provides some built-in math functions that help the programmer to perform mathematical operations efficiently.
It returns the larger value among the two
It returns the smaller value among the two
It returns the square root of a supplied number
It is shorthand of an if-else statement.
It allows a variable to be tested for equality against a list of values (cases).
break keyword inside the loop is used to terminate the loop
continue keyword skips the rest of the current iteration of the
loop and returns to the starting point of the loop
Pointer is a variable that holds the memory address of another variable
It is a programming approach that primarily focuses on using objects and classes. The objects can be any real-world entities.
It is a special method that is called automatically as soon as the object is created.
Data encapsulation is a mechanism of bundling the data, and the functions that use them and data abstraction is a mechanism of exposing only the interfaces and hiding the implementation details from the user.
Opens the file to read(default for ifstream)
Opens the file to write(default for ofstream)