RE: [Dev-C++] c or c++. that is the question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@at...> - 2003-04-23 03:59:18
|
Ioannis wearing his bullet-proof vest: Keep in mind that the prevalent X-Window library now is a C++ one. Also = most new GNU/Linux programs are being written in C++ these days... File sizes for the hello world program should not be different. Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net Anti-racism movement: http://www.positive-youthfoundation.org Iraq Peace Pledge: http://www.peacepledge.org -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Reid Thompson Sent: Wednesday, April 23, 2003 6:03 AM To: dev...@li... Subject: RE: [Dev-C++] c or c++. that is the question many reasons..., here's the first that comes to my mind.... size: -rwxrwxrwx 1 Reid.Tho Domain U 19223 Apr 22 22:22 tstC.exe* -rwxrwxrwx 1 Reid.Tho Domain U 448506 Apr 22 22:29 tstCPP.exe* stripped: -rwxrwxrwx 1 Reid.Tho Domain U 10240 Apr 22 22:32 tstC.exe* -rwxrwxrwx 1 Reid.Tho Domain U 219136 Apr 22 22:32 tstCPP.exe* =20 and ease of use is subjective :) #include <stdio.h> int main(void) { printf("hello world"); return 0; } --------------------------- #include <iostream> using namespace std; int main(void) { cout << "hello world"; return 0; } or, since everything 'should' be a class/object: #include <iostream> using namespace std; class Hello { public: void print(void) { cout << "hello world" << endl; } }; int main(void) { Hello* p =3D new Hello; p -> print(); delete p; return 0; } -rwxrwxrwx 1 Reid.Tho Domain U 449115 Apr 22 22:51 tstCPP.exe* stripped -rwxrwxrwx 1 Reid.Tho Domain U 219648 Apr 22 22:55 tstCPP.exe* reid=20 -----Original Message----- From: jose isaias cabrera [mailto:ji...@fr...]=20 Sent: Tuesday, April 22, 2003 10:17 PM To: dev...@li... Subject: [Dev-C++] c or c++. that is the question Greetings! Here is a question for all: why would anyone use c when c++ is so much easier? jos=E9 |