Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Apr 2004 07:10:21 -0400
From:      "Lucas Holt" <Luke@FoolishGames.com>
To:        "'jason'" <jason@ec.rr.com>, "'Me'" <d3javu1978@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Beginning C++ in FreeBSD
Message-ID:  <200404151110.i3FBAaoo048373@adsl-68-76-19-75.dsl.klmzmi.ameritech.net>
In-Reply-To: <407DD914.4030401@ec.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
 
I would suggest C before C++.  I took a C class after tring C++ on my own.
I tought C++ was newer and better.  Actually I found it was only newer.  It
has new features and such, just not better because it was an extension or
expansion to C.  I don't use C++ so I am sure there are those that would say
C++ is better, but I think it is only better if it suits the job better.  I
was told by a friend java is very close to C++ so it maybe a smart move, but
anyone coming in fresh I would always recommend C first. 

....

Many universities teach C++ exclusiveley now.  Java and C++ share some
common ground on syntax and the fact that they both support Object oriented
programming.  Aside from that, there are many differences.  C++ is native
code and executes faster than java which uses a virtual machine.  C++ code
is compiled into C code by the compiler and then assembly.  Java is
converted into byte code for a virtual machine.

I had a class at the local community college in C before I moved on to
western michigan.  The only benefit from the C class was a better
understanding of pointers.  Contrary to what many C++ programmers will tell
you, pointers are still very useful and needed at times.  Although I tend to
like C as a language, C++ arguably makes it easier to reuse code.
Regardless of the order, you should look at both languages to have a good
foundation.  C++ programmers must learn C basics, at least C libraries like
<cstring> and <cstdlib>.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200404151110.i3FBAaoo048373>