You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The #include <iostream> directive tells the preprocessor to include the iostream standard file. The int main() function is the entry point of the program. The std::cout object is used to print the text to the console. The std::endl is used to insert a newline character.
To compile the program, you can use the following command:
g++ HelloWorld.cpp -o HelloWorld
The -o HelloWorld option tells the compiler to output the executable file as HelloWorld .
To run the program, you can use the following command: