Robertvokac (talk | contribs) No edit summary |
Robertvokac (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
== Function main() == | == Function main() == | ||
Function main() is the entrypoint of an C++ application. | Function main() is the entrypoint of an C++ application. | ||
Variants: | |||
== Console == | == Console == | ||
Line 19: | Line 21: | ||
== Importing namespaces == | == Importing namespaces == | ||
using namespace std; | using namespace std; | ||
== C++ statement == | |||
Each C++ statement must be ended with the semicolon character ; |
Revision as of 14:42, 13 October 2024
Author: Bjarne Stroustrup Supported programming paradigms: procedural, object-oriented, generic. Based on on the C programming language. OOP in C++ was inspired by the Simula64 programming language. All C programs are valid C++ programs. The name of the C++ programming language is related to the incremental operator "++". How to create a C++ program: compiling to object files, linking object files to an executable version of the program.
Introduction
Function main()
Function main() is the entrypoint of an C++ application.
Variants:
Console
How to delay program and wait for the press of the key Enter: cin.get();
Comments
One line: // comment
Multi line: /* comment */
Preprocessor directives
Example: #include <iostream>
Importing namespaces
using namespace std;
C++ statement
Each C++ statement must be ended with the semicolon character ;