(C++) Hello World using C++ Builder
February 24, 2017 · View on GitHub
(C++) Hello World using C++ Builder
Hello World (or 'The Hello World program') is a standard example program to see if your programming environment works. Note that this example code is not standarized, so multiple and similar variants are on the Internet. A more demanding example is Hello Boost, which also tests if the Boost libraries are installed correctly.
- Watch my YouTube movie 'How to create a Hello World program in C++ Builder' in English
- Watch my YouTube movie 'How to create a Hello World program in C++ Builder' in Dutch
The (C++) code of Hello World is as follows:
#include <iostream> int main() { std::cout << "Hello World\n"; }
In C++ Builder, when the program is run, a window pops up and immediatly disappears. This is okay (because the program runs). If you want the program to wait for a key press, change the code to the following:
#include <iostream> int main() { std::cout << "Hello World\n"; std::cin.get(); }