Chapter02.ppt
Document Details
Uploaded by IndebtedOwl
Tags
Full Transcript
Chapter 2: Introduction to C++ Starting Out with C++ Early Objects Ninth Edition, Global Edition by Tony Gaddis, Judy Walters, and Godfrey Muganda Copyright © 2017 Pearson Education, Lt...
Chapter 2: Introduction to C++ Starting Out with C++ Early Objects Ninth Edition, Global Edition by Tony Gaddis, Judy Walters, and Godfrey Muganda Copyright © 2017 Pearson Education, Ltd. Topics 2.1 The Parts of a C++ Program 2.2 The cout Object 2.3 The #include Directive 2.4 Variables and the Assignment Statement 2.5 Literals 2.6 Identifiers 2.7 Integer Data Types 2.8 Floating-Point Data Types 2.9 The char Data Type Copyright © 2017 Pearson Education, Ltd. 2-2 Topics (continued) 2.10 The C++ string Class 2.11 The bool Data Type 2.13 More on Variable Assignments and Initialization 2.14 Scope 2.15 Arithmetic Operators 2.16 Comments 2.17 Programming Style Copyright © 2017 Pearson Education, Ltd. 2-3 2.1 The Parts of a C++ Program // sample C++ program comment #include preprocessor directive using namespace std; which namespace to use int main() beginning of function named main { beginning of block for main cout