cout in C++
include
int main() { std::cout << "Hello, World!"; return 0; }
Step 1: Include the iostream library to provide input/output streams functionality. Step 2: Define the main function, the entry point of the program. Step 3: Use std::cout to display the "Hello, World!" message to the console. Step 4: Return 0 to indicate successful execution of the program.