Associate Professor of Computer Science
C++ Primer For Java Programmers
As in all programming languages, we use identifiers to name things such as variables, functions, data types, classes, etc. Identifiers in C++:
Variables in C++ must be explicitly declared as they are in Java.
In C++, variables are not initialized when they are created. You can declare a variable and initialize it at the same time
int total = 0;
double taxRate = 0.05;
C++ provides a number of primitive data types including