delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/15/05:55:56

From: Chris Holmes <cholmes AT surfsouth DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C vs C++
Date: Sun, 15 Aug 1999 00:30:21 -0400
Organization: Georgia Institute of Technology, Atlanta GA, USA
Lines: 22
Message-ID: <37B6425D.2294@surfsouth.com>
References: <rrcg214rkrl46 AT corp DOT supernews DOT com>
NNTP-Posting-Host: r33h43.res.gatech.edu
Mime-Version: 1.0
X-Trace: news-int.gatech.edu 934691635 12330 128.61.33.43 (15 Aug 1999 04:33:55 GMT)
X-Complaints-To: usenet AT news DOT gatech DOT edu
NNTP-Posting-Date: 15 Aug 1999 04:33:55 GMT
X-Mailer: Mozilla 3.04Gold (Win95; I)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Al Morgan wrote:
> 
> What are the advantages to using C++, as opposed to C, and vice versa?

  Depends on what part of C++ you use.  If you despise classes but 
kinda dig streams and such, you're still using C++.
  If you like classes, you're using C++.
  If you really dig classes more than even Java uses, you're using
C++.
  If you avoid using classes, streams, and a some nitpicky C++ 
declarations, you can get away with saying you are coding straight C.

  My point is that chances are good that you're using C++ anyway.

  As for advantages, well, streams provide a nice method of input
and output (iostream).  Classes have some nice things in them.  I
don't really know the standard C++ classes because I went from C
and assembly to Java, so...
  Basically, C++ just gives you more options.

  Chris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019