Hello World and Build Process
Write Hello World, understand preprocessing, compilation, assembly, and linking stages.
The Simplest C++ Program
Every C++ program starts with main(). The runtime calls main first and exits when it returns.
#include <iostream>
int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}What #include Does
The #include directive is processed by the preprocessor before compilation. It textually pastes the contents of a header into the source file.
All lessons in this course
- Setting Up a C++ Compiler
- Hello World and Build Process
- Variables, Auto Type Inference and constexpr
- Basic Operators and Type Conversion