Board index » cppbuilder » how do get simple C++ programs to work in C++ builder 6?
Ricky Sovanasy
![]() CBuilder Developer |
Ricky Sovanasy
![]() CBuilder Developer |
how do get simple C++ programs to work in C++ builder 6?2004-02-23 02:28:45 AM cppbuilder12 how can you get a simple C++ program like this to work in C++ builder 6? #include <iostream> using namespace std; int main(); { cout << "hello world"\n"; return 0; } |
Ed Mulroy [TeamB]
![]() CBuilder Developer |
2004-02-23 02:36:13 AM
Re:how do get simple C++ programs to work in C++ builder 6?
Start by correcting the errors.
Remove the semicolon in int main(); and the quote following the d in cout << "hello world"\n"; If building in the IDE select File|New|Other and double click Console Wizard Check C++ and Console Application Uncheck Use VCL and Use CLX If building from the command line it is done like this: ---------------------------- C:\Documents and Settings\Administrator\My Documents\Lookat\Temp Quotetype temp19.cpp int main() { cout << "hello world\n"; return 0; } C:\Documents and Settings\Administrator\My Documents\Lookat\Temp Quotebcc32 -WC temp19 Turbo Incremental Link 5.64 Copyright (c) 1997-2002 Borland C:\Documents and Settings\Administrator\My Documents\Lookat\Temp Quotetemp19 Quote
QuoteRicky Sovanasy wrote in message |
Simon D
![]() CBuilder Developer |
2004-02-23 02:37:30 AM
Re:how do get simple C++ programs to work in C++ builder 6?
"Ricky Sovanasy" < XXXX@XXXXX.COM >wrote in message
Quote
the editor's gutter, or use getch() (in conio.h), or perhaps a 'cin' statement. If you use the breakpoint method, use F9 to continue execution, and program termination. HTH Simon. {smallsort} |