delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/23/13:04:54

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C vs. C++
Date: Sun, 23 Mar 1997 15:01:57 GMT
Organization: Oxford University
Lines: 27
Message-ID: <333544b7.2816166@news.easynet.co.uk>
References: <33343F3E DOT 1DB4 AT ibm DOT net>
NNTP-Posting-Host: foot.easynet.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Sat, 22 Mar 1997 15:21:18 -0500, Kevin Ivarsen <ivarneli AT ibm DOT net>
wrote:

>I currently program in C using DJGPP. I do mostly simple games and
>such.  I have a few questions about C++. First, what are the differences
>between C and C++? Second, are there any advantages to using C++ over C?
>Third, where can I get a good beginners tutorial for C++ if I decide to
>learn it?

C++ has been described as "C with classes", where a class is a C++
construct like a struct, but containing program code as well as
variables. This allows an object-oriented programming approach, which
is generally considered a good thing for largish projects. As for
games, well, depending how large the games are it may or may not be
worthwhile. There are other extensions too, for example you can define
variables at any place in the program, not just at the start of each
block.

A good C++ tutorial can be found at

http://www.swcp.com/~dodrill/

This explains the differences between C and C++, and introduces the
new concepts one by one explaining why they are useful.

-- 
George Foot

- Raw text -


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