hello world in cpp

#include <iostream>

int main() {
    // Step 1: Include the necessary header file for input/output operations
    // Step 2: Define the main function, the entry point of the program

    // Step 3: Output the text "Hello, World!" to the console
    std::cout << "Hello, World!" << std::endl;

    // Step 4: Return 0 to indicate successful completion of the program
    return 0;
}