[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppBuilderConsoleHelloWorld
Make this a Hello World program, by replacing it with the standard C++ Hello World program:
As C++ Builder automatically closes the console window after the program has executed, you might want to add a line to wait for a character input:
Again, see the C++ Hello World program for detailed information about the code.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppBuilderConsoleHelloWorld
(C++ Builder) Hello World program, console version
See the C++ Hello World program for detailed information about the code.- First do 'File | Close All'
- Do 'File | New | Other | Console Wizard'
- In the Console Wizard, set 'Source Type' to C++, uncheck 'Use VCL', uncheck 'Use CLX', uncheck 'Multi-threaded', check 'Console Application', click OK.
//---------------------------------------------------------------------------//---------------------------------------------------------------------------
- pragma hdrstop
int main(int argc, char* argv[]) { return 0; } //---------------------------------------------------------------------------
- pragma argsused
Make this a Hello World program, by replacing it with the standard C++ Hello World program:
int main() { std::cout <<"Hello World" << std::endl; return 0; }
- include <iostream>
As C++ Builder automatically closes the console window after the program has executed, you might want to add a line to wait for a character input:
int main() { std::cout <<"Hello World" << std::endl; std::cin.get(); return 0; }
- include <iostream>
Again, see the C++ Hello World program for detailed information about the code.
'Hello world' links
- C
- C++
- C++ Builder, console
- C++ Builder, VCL
- C++ Builder, CLX
- C++ BuilderX, console
- C++ BuilderX, Win32 API
- C#
- PHP
- Prolog
- Turbo C++
- Visual Prolog
- Win32 API
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
