struggling to start programming

i have just started my C++ and am yet to have any practical experience, i recently dowloaded coadgear rad studio 2009 and am trying to write the "hello world" program but am unsure as to where to type it when i open a new program it is as follows: //---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include <tchar.h>
//---------------------------------------------------------------------------

#pragma argsused
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
//---------------------------------------------------------------------------
am i using the wrong program or how would i type it? is there another program that is better to start??
please help
I would use bloodshed dev-c++: http://www.bloodshed.net/dev/devcpp.html download the full file from source forge. That program your using looks alien to me.

once your setup with dev, open a new file, save twice (once as a project, once for the .cpp) and in the main loop type:

 
cout << "hello, world\n"; 


the \n makes a newline

you could also do

 
cout << "hello, world" << endl; 



If you need any more help just ask. I have PM on

edit: you want: Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2 from the site I linked you to. Make sure its that one or stuff will not compile.
Last edited on
^^ Blitz Coder; I used to use Dev C++; it's good; but I use Code::Blocks now.

Anyway it doesn't matter.

That program doesn't appear to make sense. It looks very non-standardl and I can't see it outputting anything :l

As Blitz Coder suggested, get a good IDE & compiler. Code::Blocks is good; and both use MinGW.
Topic archived. No new replies allowed.