RE: [Dev-C++] re+ Public Domain C++ IDE
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: P.D. v. Z. <pa...@my...> - 2003-12-29 19:19:47
|
The C++ you're using is pre-standard C++. In 1998 a C++ standard was
finalized and became official, which altered a few things you might be used
to. For instance, namespaces have been added, and are now enforced by most
compilers. The standard C++ library functions, types and objects are now
stored inside a namespace called "std". "void main" has never been standard
C or C++, and thus has always been wrong. The newer versions of GCC simply
don't accept it anymore. Furthermore, the standard C++ library header files
are now extensionless, to avoid confusion with standard C library header
files.
So, applying all these changes, here is what your code should look like now:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello Dolly\n";
return 0;
}
Hope this helped.
Regards,
Paul
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of William W
Cridland
Sent: Monday, December 29, 2003 10:16 PM
To: dev...@li...
Subject: [Dev-C++] re+ Public Domain C++ IDE
I have downloaded your C++ IDE 1991 and looks great . However after
having taught C++ for the past 6 years . All the simple code I input to
your IDE seems to fail with notes such as antiquated etc etc. Code is as
follows you cannot get more simple than this.
#include<iostream.h>
void main()
{
cout<<"Hello Dolly\n";
// you dont need a return at this
level of code, also
// Main is not expecting anything
back !
}
Would apreciate any help advice or perhaps you could steer me to a
tutorial which would elaborat or give examples that work with your
compiler !!. Regards
Bill Cridland WA1HMW Bolton MA
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|