C++ Flashcards
C++ is a popular cross-platform language that can be
used to create high-performance applications - operating systems, browsers, video games, art applications, and so on.
The entry point of every C++ program
is the main() function, irrespective of what the program does.
Curly brackets { } indicate the
beginning and end of a function, which can also be called the function’s body.
The information inside the brackets indicates what the function does when executed.
cout is used to
perform output on the standard output device which is usually the display screen.
In C++
the semicolon is used to terminate a statement. Each statement must end with a semicolon. It indicates the end of one logical expression.
include is used for
adding a standard or user-defined header files to the program.
The <iostream> header</iostream>
defines the standard stream objects that input and output data.
A namespace is
a declarative region that provides a scope to the identifiers (names of elements) inside it.
the endl manipulator is use to
print two lines which will put in a line break.
The backslash () is called an escape character
indicates a “special” character.
When you program in C++, you mainly go through 4 phases during development:
Code — writing the program
Save — saving the program
Compile — compiling via the terminal
Execute — executing via the terminal