Mail Archives: djgpp/1997/03/23/13:04:54
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 -