Chapter
C
++ is an improved version of C in terms of features and programming
style capabilities, which is why we see an increment symbol ++ after the
C. Since C++ is a superset of C, we can use the C++ compiler to compile
existing C programs (but not the other way around). In this way, we can improve
the C program structure to pattern it to C++.
The best way to learn C++ syntax is to compare it with the language
we already know–C. We will be reviewing the C program listings presented
previously and comparing them with the way C++ programs are developed with
respect to the same problems. The transition from C to C++ will be much easier,
as we can always relate it to the language we are familiar.
In this chapter we will ...