CHAPTER 2
Introducing Fundamental Types of Data
In this chapter, I’ll explain the fundamental data types that are built into C++. You’ll need these in every program. All of the object-oriented capability is founded on these fundamental data types, because all the data types that you create are ultimately defined in terms of the basic numerical data your computer works with. By the end of the chapter, you’ll be able to write a simple C++ program of the traditional form: input–process–output.
In this chapter, you’ll learn about
- Data types in C++
- How you declare and initialize variables
- What literals are and how you define them
- Binary and hexadecimal ...
Get Beginning C++ 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.