C++: An Active Learning Approach provides a hands-on introduction to the C++ language through active learning exercises and numerous programming projects. C++ is taught with an emphasis on procedural programming, beginning with an introduction to object-oriented programming. Ideal for the introductory programming course, this text includes the latest C++ upgrades without losing sight of the C underpinnings still required for all computing fields. With over 30 years of combined teaching experience, the authors understand the potential pitfalls students face and thus aim to keep the language simple, straightforward, and conversational. The topics are covered in depth, yet as succinctly as possible. The text provides challenging exercises designed to teach students how to effectively debug a computer program. Team Programming Exercises urge students to read existing code, adhere to code specifications, and write from existing design documents. Examples are provided electronically allowing students to easily run code found in the text.
目錄
Introduction to Computers and Programming p. 1
Program Design and Development p. 23
Getting Started with C++ p. 59
Literals, Variables,and Constants p. 75
Imput and Output Streams p. 105
Mathematical Operations p. 143
Conditional Statements p. 171
Repetition Statements p. 205
Functions p. 233
Arrays and cStrings p. 273
File 110 and Data Manipulation p. 347
Pointers and Dynamic Memory Allocation p. 389
User-Defined Types p. 457
Introduction to Object-Oriented Programming p. 487
Introduction to Classes p. 507
Miscellaneous Topics p. 543
Binary and Random Access Files p. 575
Introduction to Linked Lists p. 595
ASCII Chart p. 629
Glossary p. 631
Index p. 645
Table of Contents provided by Blackwell. All Rights Reserved.
Introduction to Computers and Programming p. 1
Program Design and Development p. 23
Getting Started with C++ p. 59
Literals, Variables,and Constants p. 75
Imput and Output Streams p. 105
Mathematical Operations p. 143
Conditional Statements p. 171
Repetition Statements p. 205
Functions p. 233
Arrays and cStrings p. 273
File 110 and Data Manipulation p. 347
Pointers and Dynamic Memory Allocation p. 389
User-Defined Types p. 457
Introduction to Object-Oriented Programming p. 487
Introduction to Cl...