Please enable JavaScript.
Coggle requires JavaScript to display documents.
Fundamentals, Fundamentals types, constants and variables, Functions and…
Fundamentals
Programming language used : C++
Characteristics :
Universally usable modular programs
Efficient, close to machine programming
Portable programs for various platforms
OOP programming :
Data abstraction
Data encapsulation
Inheritance
Polymorphism
Advantages of OOP
Reduced susceptibility to errors
Easy re-use
Low maintenance requirements
Structure of C++ programs
"#include <iostream>"
"Using namespace std"
"int main(){} "
cin
cout
Fundamentals types, constants and variables
Boolean values
bool
Characters values
char
wchar_t
Integer values
short
int
long
Floating-point values
float
double
long double
String values
string
Functions and classes
Function prototype
Function type + Function name + (Type of argument)
If the type is void, it doesn't return anything
If it has a type other than void, it has to return something that has the same type as the equation
Classes
Methods and objects
Header files