Article View: rec.games.programmer
Article #2007Re: Should I learn C or C++ first?
From: P Moore906
Date: Mon, 21 Aug 1995 17:23
Date: Mon, 21 Aug 1995 17:23
18 lines
1173 bytes
1173 bytes
>Yes, but "variety of styles" may very well include using purely the C
>subset of C++. Some C++ features are actually pretty stupid, like
>the 'new' and 'delete' operators that correspond to 'malloc' and
>'free' but lack anything corresponding to 'realloc'.
I don't know how you could call new and delete stupid. Dynamically
allocating memory for a class and passing arguments to its constructors at
the same time would be impossible without new and delete! How could you
ever say:
TApplication* MyApp;
MyApp = new TApplication("My Application");
without new and delete?
Peter
America On-Line: P Moore906
Internet: pmoore906@aol.com OR pmoore@eagle.ibc.edu
Technical Details
Message-ID:
<41afe9$d10@newsbf02.news.aol.com>Path:
arc1-ca.pugleaf.net!newsbf02.news.aol.com!not-for-mailReferences:
<DDJ2Lp.3DG@pentagon-ai.army.mil>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!newsbf02.news.aol.com!not-for-mail From: pmoore906@aol.com (P Moore906) Newsgroups: rec.games.programmer,comp.lang.c++ Subject: Re: Should I learn C or C++ first? Date: 21 Aug 1995 13:23:21 -0400 Organization: America Online, Inc. (1-800-827-6364) Sender: root@newsbf02.news.aol.com Message-ID: <41afe9$d10@newsbf02.news.aol.com> References: <DDJ2Lp.3DG@pentagon-ai.army.mil> Reply-To: pmoore906@aol.com (P Moore906) NNTP-Posting-Host: newsbf02.mail.aol.com