Problem Solving with C++ 7th Edition by Walter J. Savitch – Ebook PDF Instant Download/Delivery: 0321531345, 9780321531346
Full Problem Solving with C++ 7th dowload Edition after payment
Product details:
Problem Solving with C 7th Table of contents:
1 Introduction to Computers and C++ Programming
Introduction
1.1 Computer Systems
Hardware
Software
High-Level Languages
Compilers
Self-Test Exercises
1.2 Programming and Problem-Solving
Algorithms
Program Design
Object-Oriented Programming
The Software Life Cycle
Self-Test Exercises
1.3 Introduction to C++
Origins of the C++ Language
A Sample C++ Program
Layout of a Simple C++ Program
Compiling and Running a C++ Program
Self-Test Exercises
1.4 Testing and Debugging
Kinds of Program Errors
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
2 C++ Basics
Introduction
Prerequisites
2.1 Variables and Assignments
Variables
Names: Identifiers
Variable Declarations
Assignment Statements
Self-Test Exercises
2.2 Input and Output
Output Using cout
Include Directives and Namespaces
Escape Sequences
Formatting for Numbers with a Decimal Point
Input Using cin
Designing Input and Output
Self-Test Exercises
2.3 Data Types and Expressions
The Types int and double
Other Number Types
C++11 Types
The Type char
The Type bool
Introduction to the Class string
Type Compatibilities
Arithmetic Operators and Expressions
Self-Test Exercises
More Assignment Statements
2.4 Simple Flow of Control
A Simple Branching Mechanism
Compound Statements
Self-Test Exercises
Simple Loop Mechanisms
Increment and Decrement Operators
Self-Test Exercises
2.5 Program Style
Indenting
Comments
Naming Constants
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
3 More Flow of Control
Introduction
Prerequisites
3.1 Using Boolean Expressions
Evaluating Boolean Expressions
Self-Test Exercises
Enumeration Types (Optional)
3.2 Multiway Branches
Nested Statements
Multiway if-else Statements
Self-Test Exercises
The switch Statement
Using switch Statements for Menus
Blocks
Self-Test Exercises
3.3 More About C++ Loop Statements
The while Statements Reviewed
Increment and Decrement Operators Revisited
Self-Test Exercises
The for Statement
What Kind of Loop to Use
Self-Test Exercises
The break Statement
Self-Test Exercises
3.4 Designing Loops
Loops for Sums and Products
Ending a Loop
Nested Loops
Self-Test Exercises
Debugging Loops
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
4 Procedural Abstraction and Functions That Return a Value
Introduction
Prerequisites
4.1 Top-Down Design
4.2 Predefined Functions
Using Predefined Functions
Random Number Generation
Type Casting
Older Form of Type Casting
Self-Test Exercises
4.3 Programmer-Defined Functions
Function Definitions
Functions That Return a Boolean Value
Alternate Form for Function Declarations
Function Definition–Syntax Summary
More About Placement of Function Definitions
Self-Test Exercises
4.4 Procedural Abstraction
The Black-Box Analogy
Self-Test Exercises
4.5 Scope and Local Variables
The Small Program Analogy
Global Constants and Global Variables
Call-by-Value Formal Parameters Are Local Variables
Block Scope
Namespaces Revisited
Self-Test Exercises
4.6 Overloading Function Names
Introduction to Overloading
Automatic Type Conversion
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
5 Functions for All Subtasks
Introduction
Prerequisites
5.1 void Functions
Definitions of void Functions
return Statements in void Functions
Self-Test Exercises
5.2 Call-By-Reference Parameters
A First View of Call-by-Reference
Call-by-Reference in Detail
Mixed Parameter Lists
Self-Test Exercises
5.3 Using Procedural Abstraction
Functions Calling Functions
Preconditions and Postconditions
Self-Test Exercises
5.4 Testing and Debugging Functions
Stubs and Drivers
Self-Test Exercises
5.5 General Debugging Techniques
Keep an Open Mind
Check Common Errors
Localize the Error
The assert Macro
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
6 I/O Streams as an Introduction to Objects and Classes
Introduction
Prerequisites
6.1 Streams and Basic File I/O
Why Use Files for I/O?
File I/O
Introduction to Classes and Objects
Techniques for File I/O
Self-Test Exercises
Appending to a File (Optional)
File Names as Input (Optional)
6.2 Tools For Stream I/O
Formatting Output with Stream Functions
Manipulators
Self-Test Exercises
Streams as Arguments to Functions
A Note on Namespaces
Self-Test Exercises
6.3 Character I/O
The Member Functions get and put
The putback Member Function (Optional)
Default Arguments for Functions (Optional)
Self-Test Exercises
The eof Member Function
Self-Test Exercises
Predefined Character Functions
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
7 Arrays
Introduction
Prerequisites
7.1 Introduction to Arrays
Declaring and Referencing Arrays
Arrays in Memory
Initializing Arrays
Self-Test Exercises
7.2 Arrays in Functions
Indexed Variables as Function Arguments
Self-Test Exercises
Entire Arrays as Function Arguments
The const Parameter Modifier
Functions That Return an Array
Self-Test Exercises
7.3 Programming with Arrays
Partially Filled Arrays
Self-Test Exercises
7.4 Multidimensional Arrays
Multidimensional Array Basics
Multidimensional Array Parameters
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
8 Strings and Vectors
Introduction
Prerequisites
8.1 An Array Type for Strings
C-String Values and C-String Variables
Other Functions in cstring
Self-Test Exercises
C-String Input and Output
Self-Test Exercises
C-String-to-Number Conversions and Robust Input
8.2 The Standard string Class
Introduction to the Standard Class string
I/O with the Class string
Self-Test Exercises
String Processing with the Class string
Self-Test Exercises
Converting Between string Objects and C Strings
Converting Between Strings and Numbers
8.3 Vectors
Vector Basics
Efficiency Issues
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
9 Pointers and Dynamic Arrays
Introduction
Prerequisites
9.1 Pointers
Pointer Variables
Self-Test Exercises
Basic Memory Management
Static Variables and Automatic Variables
Self-Test Exercises
9.2 Dynamic Arrays
Array Variables and Pointer Variables
Creating and Using Dynamic Arrays
Self-Test Exercises
Pointer Arithmetic (Optional)
Self-Test Exercises
Multidimensional Dynamic Arrays (Optional)
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
10 Defining Classes
Introduction
Prerequisites
10.1 Structures
Structures for Diverse Data
Structures as Function Arguments
Initializing Structures
Self-Test Exercises
10.2 Classes
Defining Classes and Member Functions
Self-Test Exercises
Public and Private Members
Self-Test Exercises
Summary of Some Properties of Classes
Self-Test Exercises
Constructors for Initialization
Member Initializers and Constructor Delegation in C++11
Self-Test Exercises
10.3 Abstract Data Types
Classes to Produce Abstract Data Types
Self-Test Exercises
10.4 Introduction to Inheritance
Derived Classes
Defining Derived Classes
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
11 Friends, Overloaded Operators, and Arrays in Classes
Introduction
Prerequisites
11.1 Friend Functions
Self-Test Exercise
Friend Functions
Implementation of digitToInt (Optional)
Self-Test Exercises
The const Parameter Modifier
Self-Test Exercises
11.2 Overloading Operators
Overloading Operators
Self-Test Exercises
Constructors for Automatic Type Conversion
Self-Test Exercise
Overloading Unary Operators
Overloading >> and <<
Self-Test Exercises
11.3 Arrays and Classes
Arrays of Classes
Self-Test Exercises
Arrays as Class Members
Self-Test Exercises
11.4 Classes and Dynamic Arrays
Destructors
Copy Constructors
Self-Test Exercises
Overloading the Assignment Operator
Self-Test Exercise
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
12 Separate Compilation and Namespaces
Introduction
Prerequisites
12.1 Separate Compilation
ADTs Reviewed
Using #ifndef
Self-Test Exercises
12.2 Namespaces
Namespaces and using Directives
Creating a Namespace
Self-Test Exercises
Qualifying Names
A Subtle Point About Namespaces (Optional)
Self-Test Exercises
Unnamed Namespaces
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
13 Pointers and Linked Lists
Introduction
Prerequisites
13.1 Nodes and Linked Lists
Nodes
nullptr
Self-Test Exercises
Linked Lists
Inserting a Node at the Head of a List
Searching a Linked List
Pointers as Iterators
Inserting and Removing Nodes Inside a List
Self-Test Exercises
Variations on Linked Lists
Linked Lists of Classes
13.2 Stacks and Queues
Stacks
Self-Test Exercises
Queues
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
14 Recursion
Introduction
Prerequisites
14.1 Recursive Functions For Tasks
A Closer Look at Recursion
Self-Test Exercises
Stacks for Recursion
Recursion Versus Iteration
Self-Test Exercises
14.2 Recursive Functions For Values
General Form for a Recursive Function That Returns a Value
Self-Test Exercises
14.3 Thinking Recursively
Recursive Design Techniques
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
15 Inheritance
Introduction
Prerequisites
15.1 Inheritance Basics
Derived Classes
Constructors in Derived Classes
The protected Qualifier
Self-Test Exercises
Redefinition of Member Functions
Redefining Versus Overloading
Access to a Redefined Base Function
Self-Test Exercises
15.2 Inheritance Details
Functions That Are Not Inherited
Assignment Operators and Copy Constructors in Derived Classes
Destructors in Derived Classes
Self-Test Exercises
15.3 Polymorphism
Late Binding
Virtual Functions in C++
Self-Test Exercise
Virtual Functions and Extended Type Compatibility
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
16 Exception Handling
Introduction
Prerequisites
16.1 Exception-Handling Basics
A Toy Example of Exception Handling
Self-Test Exercises
Defining Your Own Exception Classes
Multiple Throws and Catches
Throwing an Exception in a Function
Exception Specification
Self-Test Exercises
16.2 Programming Techniques for Exception Handling
When to Throw an Exception
Exception Class Hierarchies
Testing for Available Memory
Rethrowing an Exception
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
17 Templates
Introduction
Prerequisites
17.1 Templates for Algorithm Abstraction
Templates for Functions
Self-Test Exercises
Self-Test Exercises
17.2 Templates for Data Abstraction
Syntax for Class Templates
Self-Test Exercises
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
18 Standard Template Library and C++11
Introduction
Prerequisites
18.1 Iterators
using Declarations
Iterator Basics
Self-Test Exercises
Kinds of Iterators
Self-Test Exercise
Constant and Mutable Iterators
Reverse Iterators
Other Kinds of Iterators
Self-Test Exercises
18.2 Containers
Sequential Containers
Self-Test Exercises
Container Adapters stack and queue
Self-Test Exercises
Associative Containers set and map
Efficiency
Self-Test Exercises
18.3 Generic Algorithms
Running Times and Big-O Notation
Container Access Running Times
Self-Test Exercises
Nonmodifying Sequence Algorithms
Self-Test Exercises
Container Modifying Algorithms
Self-Test Exercises
Set Algorithms
Self-Test Exercise
Sorting Algorithms
18.4 C++ Is Evolving
std::array
Regular Expressions
Threads
Smart Pointers
Chapter Summary
Answers to Self-Test Exercises
Practice Programs
Programming Projects
Appendix 1 C++ Keywords
Appendix 2 Precedence of Operators
Appendix 3 The ASCII Character Set
Appendix 4 Some Library Functions
Arithmetic Functions
Input and Output Member Functions
Character Functions
String Functions
Random Number Generator
Trigonometric Functions
Appendix 5 Inline Functions
Appendix 6 Overloading the Array Index Square Brackets
Appendix 7 The this Pointer
Appendix 8 Overloading Operators as Member Operators
People also search for Problem Solving with C 7th:
problem solving with customers
problem solving with c++ ninth edition
problem solving with cubes
problem solving with constraints
Reviews
There are no reviews yet.