SUMMARY
This chapter covered the basics of computation in C++. You have learned about all the elementary types of data provided for in the language, and all the operators that manipulate these types directly.
Although I have discussed all the fundamental types, don’t be misled into thinking that’s all there is. There are more complex types based on the basic set, as you’ll see, and eventually, you will be creating original types of your own.
1 + 2 + 3 + 4
16 * 4 / 2 * 3
a > b? a: c > d? e: f
a & b && c & d
int width = 1280;
int height = 1024;
double aspect = width / height;
Get Ivor Horton's Beginning Visual C++ 2012 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.