From: g DOT reed AT clear DOT net DOT nz (Glenn Reed) Newsgroups: alt.comp.lang.learn.c-c++,comp.os.msdos.djgpp Subject: Which is best? C or C++ ??? Date: Sat, 06 Dec 1997 09:15:39 GMT Organization: CLEAR Net, http://www.clear.net.nz/ Lines: 36 Message-ID: <348a15e5.826895@news.clear.net.nz> NNTP-Posting-Host: d1-u29.acld.clear.net.nz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, Can someone break through all the hype for me. Which is the better language C or C++? I suppose I should qualify it. 1. Some people say that C is more efficient than C++ but does this still matter with the faster computers, eg 486s, Pentiums. How much more inefficient is it? 2. The claim is also that it reduces runtime bug hunting. However I've noticed that C++ is also more complex and executes code hidden behind the scenes. eg. constructors, destructors, operator-overloading. Are the runtime bugs just manifesting in different ways? 3. Perhaps the only legitimate claim and that it is written with large project development in mind so it makes the concept of interfacing more straightforward. Multi-person programming projects might have less bugs at the interface level because the interface is much more well defined???? 4. Most code (particularly with the DJGPP projects) seems to be written in C these days, and fewer stuff written in C++. Is this because of the GPL license stuff or because it is harder and more difficult (and hence takes a lot more time) to write in C++. Any comments? Glenn. -------------------------------------------------------------- E-mail: g DOT reed AT clear DOT net DOT nz Postal: 109 Burns St, Cambridge New Zealand. --------------------------------------------------------------