"Paul Woodward" <no*****@newsgroups.com> wrote in message
news:3f***********************@news.dial.pipex.com ...
I am new to programming in the C / C++ language and I am using a mixture
of online materials plus a small collection of C and C++ books.
What I basically want to know is how do I know if something I am learning
is from the C Language or the C++ Language and should I avoid mixing the two.
I am under the impression that C++ is the successor of C but I would
imagine at the same time there are some functions that have become obsolete under
C++ from the C language and I want to avoid using them.
I am developing on a Linux machine and compiling using gcc and simply
using VIM as a text editor for my source code.
--
Kind Regards,
Paul Woodward
To start off with read the classic programming text for "C" : "The C
Programming Language" by Kernighan and Ritchie.
All "C" programs are C++ programs. Since essentially C++ is a superset of
"C" with object-oriented syntax and semantics added,
mainly objects and classes. ( C uses structs).
Then for a one of the best tutorial reference , refer to ( borowed from a
library ) or get yourself a copy of "The C++ Programming Language"
by Bjarne Stroustrup( the inventor of C++). It is a bit hard to read at
first, so you may refer to a less terse C++ tutorial
book , to help break you into the Strousop book. Depending on your
background, choose for yourself a beginner
C++ tutorial book(suitable for your understanding level), because I dont
know your programming history or coding experience.
Both books mentioned above are quite easy to find both have white covers
Use pico , advanced editor or xemacs as programming editor for editing
source code ( as your confidence grows.) vim or vi
is a bit hard for a Unix or Linux beginner.
Regards,
Gavin