Chapter 1.  C++ Introduction

Table of Contents

1.1. Overview of C++
1.2. A Brief History of C++
1.3. C++/Qt Setup: Open Source Platforms
1.4. C++/Qt Setup: Win32
1.5. C++ First Example
1.6. Input and Output
1.6.1. Exercises: Input and Output
1.7. Qt dialogs for user input/output
1.7.1. Exercises: Qt dialogs for user input/output
1.8. Makefile, qmake, and Project Files
1.8.1. #include: Finding Header Files
1.9. The make Command
1.10. Getting Help Online
1.11. Strings
1.12. Streams
1.12.1. Exercises: Streams
1.13. Identifiers, Types, and Literals
1.13.1. Exercises: Identifiers, Types, and Literals
1.14. C++ Simple Types
1.14.1. main, and Command Line Arguments
1.14.2. Arithmetic
1.14.3. Exercises: C++ Simple Types
1.15. The Keyword const
1.16. Pointers and Memory access
1.16.1. The Unary Operators & and *
1.16.2. Operators new and delete
1.16.3. Exercises: Pointers and Memory access
1.17. const* and *const
1.18. Reference Variables
1.19. Review Questions
1.19.1. Points of Departure

[ fromfile: cppintro.xml id: cppintro ]

Abstract

In this chapter, the language is introduced. Basic concepts such as keywords, literals, identifiers, declarations, native types, and type conversions are defined. Some history and evolution are discussed, along with the relationship between C++ and the C language.