Write, compile, and run the classic 'Hello, World!' program.
Writing your first program is a rite of passage in learning any new language. In C++, the classic 'Hello, World!' program serves as a simple introduction to the basic structure of a C++ program. Let's break down the components. `#include <iostream>` is a preprocessor directive. It tells the compiler to include the contents of the `iostream` header file, which contains declarations for input/output operations, like printing text to the screen. `int main()` is the main function. Every C++ program must have a `main` function, as it is the starting point of execution. The `int` indicates that the function returns an integer value. The curly braces `{}` define the scope of the function; all the code inside them belongs to the `main` function. `std::cout` is the standard character output stream, used to print text. The `<<` operator is the stream insertion operator; it 'inserts' the data that follows it into the stream. The text to be printed, "Hello, World!", is enclosed in double quotes, making it a string literal. `std::endl` is a manipulator that inserts a newline character and flushes the output buffer, moving the cursor to the next line. `return 0;` terminates the `main` function and returns the value 0 to the operating system, signifying that the program executed successfully. This simple program demonstrates the essential elements you'll see in almost every C++ application.