Chapter 3. DEALING WITH DATA

In this chapter you learn

  • Rules for naming C++ variables

  • C++'s built-in integer types: unsigned long, long, unsigned int, int, unsigned short, short, char, unsigned char, signed char, and bool

  • The climits file, representing system limits for various integer types

  • Numeric constants of various integer types

  • Using the const qualifier to create symbolic constants

  • C++'s built-in floating-point types: float, double, and long double

  • The cfloat file, representing system limits for various floating-point types

  • Numeric constants of various floating-point types

  • C++'s arithmetic operators

  • Automatic type conversions

  • Forced type conversions (type casts)

The essence of object-oriented programming is designing and extending your own data types. ...

Get C++ Primer Plus, Fourth Edition 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.