November 2002
Beginner
432 pages
11h 44m
English
Some of the new language features that C++ provides over C have nothing directly to do with OOP. The following sections preview some of the non-OOP language differences that you'll find between C and C++.
One of the differences is the way that C++ allows you to place comments in your C++ programs. (A comment in C or C++ is the same as a remark in Visual Basic.) Any text that follows a double slash, //, is considered by C++ to be a comment. Therefore, you don't need a closing comment symbol, such as */, as you need in C. The following shows the same comment in C++ and then in C:
intCust++; // Add to customer count intCust++; /* Add to customer count */
The C++ format is often simpler to code ...