Thread: [Dev-C++] re+ Public Domain C++ IDE
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: William W C. <wa...@ju...> - 2003-12-29 18:16:51
|
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 |
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 |
From: * W. <wi...@fu...> - 2003-12-29 20:14:52
|
Hi all :: Trivial defence ... I recall several months !! Dealing with this on the = Microsoft compiler at transition time circa. 1997 and '98. I much prefer the "\backward" folder stuff that gcc(?) or is it a DEV = CPP factor -- Use. I had several project managers dumping on me for "risking' everything -- = Mind you we delivered on time, etc, etc. (Because we allowed for the = 'pain'). Enjoy someone's forward thinking of the compiler set-up. It will save = you money ! Good show folks. Happy 2004 .... Will. ----- Original Message -----=20 From: P.D. van Zelst=20 To: 'William W Cridland' ; dev...@li...=20 Sent: Tuesday, December 30, 2003 6:22 AM Subject: RE: [Dev-C++] re+ Public Domain C++ IDE 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. =20 = #include<iostream.h> void main() { cout<<"Hello Dolly\n"; =20 // 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=3D1278&alloc_id=3D3371&op=3Dclick _______________________________________________ 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 ------------------------------------------------------- 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=3D1278&alloc_id=3D3371&op=3Dclick _______________________________________________ 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 |
From: RUDOLPH B. <ku...@sp...> - 2003-12-29 22:06:16
|
Hello William, There are two points to be made but, please consider my two forms: // stdmain.cpp /* this will complie but To disable this warning use -Wno-deprecated otherwise ok for Learning pactice. */ #include<iostream.h> #include<stdlib.h> //system() void main() { cout<<"Hello Dolly\n"; system("pause") ; return; // Main is not expecting //anything but still have to return control to OS ! } // stdmain.cpp #include<iostream> #include<cstdlib.h> // All standard C libraries are presented with 'c' //inserted for compatabillities !! using namespace std; // to qualified ( standard C++ libraries files only). int main() { cout<<"Hello Dolly\n"; system("pause") ; return 0; // Main is not expecting //anything but return value of 0 to OS ! } A good C&C++ complier is ISO standard. cut & paste it and try. I hope this have help you. I heard that < cprogramming.com >is a good resource website. Regards Rudolph ----- Original Message ----- From: "William W Cridland" <wa...@ju...> To: <dev...@li...> Sent: Monday, December 29, 2003 9:16 PM 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 > _______________________________________________ |
From: RUDOLPH B. <ku...@sp...> - 2003-12-29 23:15:21
|
Hello William, There are two points to be made but, please consider my two forms: // stdmain.cpp /* this will complie but To disable this warning use -Wno-deprecated otherwise ok for Learning pactice. */ #include<iostream.h> #include<stdlib.h> //system() void main() { cout<<"Hello Dolly\n"; system("pause") ; return; // Main is not expecting //anything but still have to return control to OS ! } // stdmain.cpp #include<iostream> #include<cstdlib.h> // All standard C libraries are presented with 'c' //inserted for compatabillities !! using namespace std; // to qualified ( standard C++ libraries files only). int main() { cout<<"Hello Dolly\n"; system("pause") ; return 0; // Main is not expecting //anything but return value of 0 to OS ! } A good C&C++ complier is ISO standard. cut & paste it and try. I hope this have help you. I heard that < cprogramming.com >is a good resource website. Regards Rudolph ----- Original Message ----- From: "William W Cridland" <wa...@ju...> To: <dev...@li...> Sent: Monday, December 29, 2003 9:16 PM Subject: [Dev-C++] re+ Public Domain C++ IDE |