Abstract
In this chapter, we’ll explain the fundamental data types that are built into C++. You’ll need these in every program. All of the object-oriented capabilities are 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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
If need be, you can determine whether char is signed or not for your compiler using the constant std::numeric_limits<char>::is_signed in the <limits> module. We’ll have more to say about the <limits> module later in this chapter.
- 2.
- 3.
Not all doubles will be formatted using 16 digits, though. The default formatting of the double value 1.5, for instance, would just be ”1.5”.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2020 Ivor Horton and Peter Van Weert
About this chapter
Cite this chapter
Horton, I., Van Weert, P. (2020). Introducing Fundamental Types of Data. In: Beginning C++20. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5884-2_2
Download citation
DOI: https://doi.org/10.1007/978-1-4842-5884-2_2
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-5883-5
Online ISBN: 978-1-4842-5884-2
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)