Book description
C++: An Active Learning Approach provides a hands-on approach to the C++ language through active learning exercises and numerous programming projects. Ideal for the introductory programming course, this text includes the latest C++ upgrades without losing site of the C underpinnings still required for all computing fields. With over 30 years combined teaching experience the authors understand potential pitfalls students face and 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 and Team Programming exercises urge students to read existing code, adhere to code specifications, and write from existing design documents. Examples are provided electronically allowing to students to easily run code found in the text.Table of contents
- Cover Page
- Title Page
- Copyright Page
- Dedication Page
- Preface
- Contents
-
Chapter 1 - Introduction to Computers and Programming
- 1.1 - Overview of Computers and Programming
- 1.2 - Historical Developments
- 1.3 - Computer Hardware
- 1.4 - Computer Software
- 1.5 - Embedded Systems
- 1.6 - Programming Paradigms
- 1.7 - Programming Languages
- 1.8 - Data Hierarchy
- 1.9 - Numbering Systems
- 1.10 - Summary
- 1.11 - Answers to Selected Chapter Exercises
-
Chapter 2 - Program Design and Development
- 2.1 - Procedural Programming
- 2.2 - Problem-Solving Overview
- 2.3 - Algorithm Representation
- 2.4 - Algorithm Development
- 2.5 - Compilation Process
- 2.6 - Program Development in Microsoft Visual Studio
- 2.7 - Running the Program
- 2.8 - Errors
- 2.9 - Desk Checking
- 2.10 - Using Visual Studio (VS)
- 2.11 - Debugging
- 2.12 - Problem Solving Applied
- 2.13 - Summary
- 2.14 - Debugging Exercise
- 2.15 - Programming Exercises
- 2.16 - Team Programming Exercise
- 2.17 - Answers to Chapter Exercises
-
Chapter 3 - Getting Started with C++
- 3.1 - C++ Basics
- 3.2 - Whitespace
- 3.3 - Comments
- 3.4 - The main Function
- 3.5 - The #include Preprocessor Directive
- 3.6 - Problem Solving Applied
- 3.7 - C—The Differences
- 3.8 - Summary
- 3.9 - Debugging Exercise
- 3.10 - Programming Exercises
- 3.11 - Team Programming Exercise
- 3.12 - Answers to Chapter Exercises
-
Chapter 4 - Literals, Variables, and Constants
- 4.1 - Literals
- 4.2 - Character Escape Sequences
- 4.3 - Variable Declarations
- 4.4 - ASCII Characters
- 4.5 - Constants
- 4.6 - const Versus #define
- 4.7 - Bringing It All Together
- 4.8 - Variable Declarations in Pseudocode
- 4.9 - Problem Solving Applied
- 4.10 - C—The Differences
- 4.11 - Summary
- 4.12 - Debugging Exercise
- 4.13 - Programming Exercises
- 4.14 - Team Programming Exercise
- 4.15 - Answers to Chapter Exercises
-
Chapter 5 - Input and Output Streams
- 5.1 - Input and Output Streams
- 5.2 - The end1 Manipulator
- 5.3 - Input and Output Buffers
- 5.4 - Formatting the Output Stream
- 5.5 - Debugging
- 5.6 - Problem Solving Applied
- 5.7 - C—The Differences
- 5.8 - Summary
- 5.9 - Debugging Exercise
- 5.10 - Programming Exercises
- 5.11 - Team Programming Exercises
- 5.12 - Answers to Chapter Exercises
-
Chapter 6 - Mathematical Operations
- 6.1 - Mathematical Expressions
- 6.2 - Assignment Operator (=)
- 6.3 - Standard Arithmetic Operators (+, -, *, /, %)
- 6.4 - Increment and Decrement Operators (++, --)
- 6.5 - Compound Assignment Operators (+=,-=, *=, /=, %=)
- 6.6 - Accumulators Versus Counters
- 6.7 - Order of Precedence
- 6.8 - Mathematical Functions
- 6.9 - Type Casting
- 6.10 - Problem Solving Applied
- 6.11 - C—The Differences
- 6.12 - Summary
- 6.13 - Debugging Exercise
- 6.14 - Programming Exercises
- 6.15 - Team Programming Exercise
- 6.16 - Answers to Chapter Exercises
-
Chapter 7 - Conditional Statements
- 7.1 - Conditional Expressions
- 7.2 - The if Statement
- 7.3 - Variable Scope
- 7.4 - The switch Statement
- 7.5 - Conditional Operator
- 7.6 - Problem Solving Applied
- 7.7 - C—The Differences
- 7.8 - Summary
- 7.9 - Debugging Exercise
- 7.10 - Programming Exercises
- 7.11 - Team Programming Exercise
- 7.12 - Answers to Chapter Exercises
-
Chapter 8 - Repetition Statements
- 8.1 - General Repetition Concepts
- 8.2 - The while Loop
- 8.3 - The do-while Loop
- 8.4 - The for Loop
- 8.5 - Breakpoints and Loops
- 8.6 - Problem Solving Applied
- 8.7 - C—The Differences
- 8.8 - Summary
- 8.9 - Debugging Exercise
- 8.10 - Programming Exercises
- 8.11 - Team Programming Exercise
- 8.12 - Answers to Chapter Exercises
-
Chapter 9 - Functions
- 9.1 - What Are Functions?
- 9.2 - Function Components
- 9.3 - Return
- 9.4 - Passing Parameters
- 9.5 - Default Arguments
- 9.6 - Putting It All Together
- 9.7 - Debugging—Call Stack
- 9.8 - More Predefined Functions
- 9.9 - Structure Charts
- 9.10 - Problem Solving Applied
- 9.11 - C—The Differences
- 9.12 - Summary
- 9.13 - Debugging Exercise
- 9.14 - Programming Exercises
- 9.15 - Team Programming Exercise
- 9.16 - Answers to Chapter Exercises
-
Chapter 10 - Arrays and cStrings
- 10.1 - What Are Arrays?
- 10.2 - Declaring Arrays
- 10.3 - Using Arrays
- 10.4 - Initialization
- 10.5 - Array Manipulation
- 10.6 - Passing Arrays to Functions
- 10.7 - Special Case: cStrings
- 10.8 - cString Functions
- 10.9 - cString Function Standards
- 10.10 - Multidimensional Arrays
- 10.11 - Parallel Arrays
- 10.12 - Problem Solving Applied
- 10.13 - C—The Differences
- 10.14 - Summary
- 10.15 - Debugging Exercise
- 10.16 - Programming Exercises
- 10.17 - Team Programming Exercise
- 10.18 - Answers to Chapter Exercises
-
Chapter 11 - File I/O and Data Manipulation
- 11.1 - Data Files
- 11.2 - File Streams
- 11.3 - Opening Files
- 11.4 - Checking for Successful Opening
- 11.5 - Closing Files
- 11.6 - Writing to Files
- 11.7 - Reading from Files
- 11.8 - Searching
- 11.9 - Sorting
- 11.10 - Problem Solving Applied
- 11.11 - C—The Differences
- 11.12 - Summary
- 11.13 - Debugging Exercise
- 11.14 - Programming Exercises
- 11.15 - Team Programming Exercise
- 11.16 - Answers to Chapter Exercises
-
Chapter 12 - Pointers and Dynamic Memory Allocation
- 12.1 - Definition
- 12.2 - Declaration
- 12.3 - Advanced Pointer Declarations
- 12.4 - Indirection Operator
- 12.5 - Passing by Pointer
- 12.6 - Pointer Arithmetic
- 12.7 - Pointers Applied
- 12.8 - More cString Functions
- 12.9 - Dynamic Memory Allocation
- 12.10 - Passing Pointers by Reference
- 12.11 - Pointers and Strings
- 12.12 - Ragged Arrays
- 12.13 - Dynamic Two-Dimensional Arrays
- 12.14 - Testing for Memory Leaks
- 12.15 - Function Pointers
- 12.16 - Problem Solving Applied
- 12.17 - C—The Differences
- 12.18 - Summary
- 12.19 - Debugging Exercise
- 12.20 - Programming Exercises
- 12.21 - Team Programming Exercise
- 12.22 - Answers to Chapter Exercises
- Chapter 13 - User-Defined Types
- Chapter 14 - Introduction to Object-Oriented Programming
-
Chapter 15 - Introduction to Classes
- 15.1 - Classes
- 15.2 - Instantiation
- 15.3 - Manager Functions
- 15.4 - Implementation Hiding
- 15.5 - Conditional Compilation
- 15.6 - Base Member Initialization
- 15.7 - Function Overloading
- 15.8 - Passing By Const-ref
- 15.9 - Problem Solving Applied
- 15.10 - C—The Differences
- 15.11 - Summary
- 15.12 - Debugging Exercise
- 15.13 - Programming Exercises
- 15.14 - Team Programming Exercise
- 15.15 - Answers to Chapter Exercises
- Chapter 16 - Miscellaneous Topics
- Chapter 17 - Binary and Random Access Files
-
Chapter 18 - Introduction to Linked Lists
- 18.1 - Data Structures
- 18.2 - Linked Lists
- 18.3 - Prepending a Node
- 18.4 - Appending a Node
- 18.5 - Inserting a Node into an Ordered List
- 18.6 - Traversing the List
- 18.7 - Deleting Nodes
- 18.8 - Arrays Versus Linked Lists
- 18.9 - Problem Solving Applied
- 18.10 - C—The Differences
- 18.11 - Summary
- 18.12 - Debugging Exercise
- 18.13 - Programming Exercises
- 18.14 - Team Programming Exercise
- 18.15 - Answers to Chapter Exercises
- Appendix A: ASCII Chart
- Glossary
- Index
Product information
- Title: C++: An Active Learning Approach
- Author(s):
- Release date: October 2010
- Publisher(s): Jones & Bartlett Learning
- ISBN: 9781449612832
You might also like
book
C++ By Example: UnderC Learning Edition
C++ by Example includes 'UnderC,' an open-source language interpreter developed by the author, which shows the …
book
C++ for Lazy Programmers: Quick, Easy, and Fun C++ for Beginners
Learn C++ the quick, easy, and “lazy” way. This book is an introductory programming text that …
book
C++ Recipes: A Problem-Solution Approach
C++ Recipes: A Problem-Solution Approach is Apress' solution for those C++ programmers looking for a handy …
book
Exploring C++ 11, Second Edition
Exploring C++ divides C++ up into bite-sized chunks that will help you learn the language one …