C++

Examples, hints, and tips to help you code better in C++.

  1. Hello World

    A basic C++ program.

    #include <iostream>
     
    int main()
    {
        std::cout << "Hello World!";
    }

    #include <iostream> includes the code needed to output text to the console.
    std::cout is the command to output to the console.
    << passes the string "Hello World!" to the std::cout command.

Syndicate content