There are 41 word(s) in the post.
It will take 1 minute(s) to read.
Prologue
This article demonstrates a Hello World program in C++.
Example
/* Include the standard I/O library. */
#include <iostream>
/* Main function of C++ programs. */
int main(void)
{
/* Print out some text to stdandard output. */
std::cout << "Hello World" << std::endl;
/* Return a program status. */
return 0;
}
Compilation
Here is a pseudo command to compile and run C++ code:
$ g++ -Wall -Wextra -o program source.cpp
$ ./program
Hello World
README
Hello World programs aim to try development environments for beginners. This post shows a C++ version of a Hello World program.