内容简介:Minimal technical jargon, step-by-step discussions, and quizzes at the end of each chapter make this an easy-to-understand guide to C++ programming. Quickly learn what a programming language is and the anatomy of C++, then jump right into creating your own programs with expert guidance. Discover functions, objects, compilers, linkers, and much more along the way. For the fast and easy way to understanding the fundamentals of C++, this is the resource you need.
作者简介:Jeff Kent (Los Angeles) is a college instructor specializing in programming languages including Visual Basic, C++, and Java.
目录:Ch. 1 How a C++ program works 1
Ch. 2 Memory and data types 21
Ch. 3 Variables 45
Ch. 4 Arithmetic operators 65
Ch. 5 Making decisions : if and switch statements 83
Ch. 6 Nested if statements and logical operators 109
Ch. 7 The For loop 125
Ch. 8 While and Do While loops 143
Ch. 9 Functions 161
Ch. 10 Arrays 187
Ch. 11 What's the address? : pointers 213
Ch. 12 Character, C-string, and C++ string class functions 243
Ch. 13 Persistent data : file input and output 269
Ch. 14 The road ahead : structures and classes 293
Final exam 317
Answers to quizzes and final exam 323
Index 339
Ch. 2 Memory and data types 21
Ch. 3 Variables 45
Ch. 4 Arithmetic operators 65
Ch. 5 Making decisions : if and switch statements 83
Ch. 6 Nested if statements and logical operators 109
Ch. 7 The For loop 125
Ch. 8 While and Do While loops 143
Ch. 9 Functions 161
Ch. 10 Arrays 187
Ch. 11 What's the address? : pointers 213
Ch. 12 Character, C-string, and C++ string class functions 243
Ch. 13 Persistent data : file input and output 269
Ch. 14 The road ahead : structures and classes 293
Final exam 317
Answers to quizzes and final exam 323
Index 339