(C++) Hello World console program in C++ Builder

February 24, 2017 · View on GitHub

 

 

 

 

 

(C++) Hello World console program in C++ Builder

 

To create a 'Hello World' program in C++ Builder, you can watch my YouTube movie or follow the steps below:

 

  • Click 'File | Close All'
  • Click 'File | New | Other', now you can choose what to create
  • Choose the 'Console Wizard' by double-clicking it
  • In the 'Console Wizard', do the following:
    • set 'Source type' to C++
    • uncheck 'Use VCL'
    • uncheck 'Use CLX'
    • uncheck 'Multi-threaded'
    • check 'Console Application'

 

Now your console application project is set up. Change the code to the following standard C++ Hello World code:

 


#include <iostream> int main() {   std::cout << "Hello World\n"; }

 

  • Press F9 to run your application