0Pricing
C++ Academy · Lesson

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

  1. Setting Up a C++ Compiler
  2. Hello World and Build Process
  3. Variables, Auto Type Inference and constexpr
  4. Basic Operators and Type Conversion
← Back to C++ Academy