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: //---------------------------------------------------------------------------
#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
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.