Chapter 12. Fundamental Data Types

 < Free Open Study > 

cc2e.com/1278

Contents

  • Numbers in General page 292

  • Integers page 293

  • Floating-Point Numbers page 295

  • Characters and Strings page 297

  • Boolean Variables page 301

  • Enumerated Types page 303

  • Named Constants page 307

  • Arrays page 310

  • Creating Your Own Types (Type Aliasing) page 311

Related Topics

  • Naming data: Chapter 11

  • Unusual data types: Chapter 13

  • General issues in using variables: Chapter 10

  • Formatting data declarations: "Laying Out Data Declarations" in Section 31.5

  • Documenting variables: "Commenting Data Declarations" in Section 32.5

  • Creating classes: Chapter 6

The fundamental data types are the basic building blocks for all other data types. This chapter contains tips for using numbers (in general), integers, floating-point numbers, characters and strings, boolean variables, enumerated types, named constants, and arrays. The final section in this chapter describes how to create your own types.

This chapter covers basic troubleshooting for the fundamental types of data. If you've got your fundamental-data bases covered, skip to the end of the chapter, review the checklist of problems to avoid, and move on to the discussion of unusual data types in Chapter 13.

 < Free Open Study > 


Code Complete
Code Complete: A Practical Handbook of Software Construction, Second Edition
ISBN: 0735619670
EAN: 2147483647
Year: 2003
Pages: 334

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net