C++ Programming: From Problem Analysis to Program Design

Front Cover
Cengage Learning, Feb 11, 2008 - Computers - 1384 pages
12 Reviews
Now in its fourth edition, C++ Programming: From Problem Analysis to Program Design remains the definitive text for CS1 courses. Best-selling author D.S. Malik employs a student-focused approach, using complete programming examples to teach introductory programming concepts. This fourth edition has been enhanced to further demonstrate the use of OOD methodology, to introduce sorting algorithms (bubble sort and insertion sort), and to present additional material on abstract classes. In addition, the exercise sets at the end of each chapter have been expanded to include several calculus and engineering-related exercises. All programs have been written, compiled, and quality-assurance tested with Microsoft Visual C++ .NET, available as an optional compiler with this text. C++ Programming: From Problem Analysis to Program Design, Fourth Edition is the ideal text to motivate your students as they learn the theory behind programming.
Important Notice: Media content referenced within the product description or the product text may not be available in the ebook version.
  

What people are saying - Write a review

User ratings

5 stars
4
4 stars
5
3 stars
3
2 stars
0
1 star
0

Review: C++ Programming: From Problem Analysis to Program Design

User Review  - Andrew - Goodreads

Read the 7th edition for class. I think it is a pretty good book and it's used for two classes at my school so that's gotta be good. There was some redundancy though, but overall it did help me in the class. Read full review

Review: C++ Programming: From Problem Analysis to Program Design

User Review  - Goodreads

Read the 7th edition for class. I think it is a pretty good book and it's used for two classes at my school so that's gotta be good. There was some redundancy though, but overall it did help me in the class. Read full review

Contents

An Overview of Computers and Programming Languages
1
The Evolution of Programming Languages
8
Programming with the Problem
14
Programming Methodologies
22
Basic Elements of C++
29
Arithmetic Operators and Operator Precedence
40
Type Conversion Casting
48
Increment and Decrement Operators
67
Inheritance and Composition
717
Composition
743
Grade Report
751
Quick Review
772
Programming Exercises
779
Pointers Classes Virtual Functions and Abstract Classes
785
Overloading and Templates
853
Complex Numbers
903

Preprocessor Directives
77
Program Style and Form
83
More on Assignment Statements
88
Quick Review
97
Programming Exercises
107
InputOutput
115
Using Predefined Functions in a Program
123
Input Failure
131
Additional Output Formatting Tools
141
Control Structures I Selection
167
if and if else
184
switch Structures
204
Terminating a Program with
211
Programming Exercises
225
Control Structures II Repetition
231
Account Balance
250
for Looping Repetition Structure
264
Choosing the Right Looping Structure
278
Programming Exercises
300
UserDefined Functions I
307
UserDefined Functions II
345
UserDefined Simple Data Types Namespaces and the string Type
415
Namespaces
437
Quick Review
460
Arrays and Strings
469
Cstrings Character Arrays
492
Parallel Arrays
499
Code Detection
518
Quick Review
532
Applications of Arrays Searching and Sorting and the vector Type
545
vector Type class
574
Quick Review
595
Records structs
603
Sales Data Analysis
621
Quick Review
635
Classes and Data Abstraction
641
Data Abstraction Classes and Abstract Data Types
674
Executable Code
681
Candy Machine
691
Quick Review
706
Programming Exercises
713
newstring
911
Templates
917
Quick Review
927
Programming Exercises
934
Exception Handling
943
Recursion
981
Linked Lists
1017
Linked List as an ADT
1032
Ordered Linked Lists
1054
Print a Linked List in Reverse Order
1066
Stacks and Queues
1111
Highest GPA
1130
Linked Implementation of Stacks
1136
Postfix Expressions Calculator
1148
Nonrecursive Algorithm to Print
1160
Queues
1167
Simulation
1186
Quick Review
1206
Programming Exercises
1213
APPENDIX A Reserved Words
1219
Information Interchange
1223
Operator Overloading
1227
Naming Conventions of Header Files in ANSIISO
1248
APPENDIX F Header Files
1251
APPENDIX G Memory Size on a System and Random
1262
Iterators
1288
Answers to OddNumbered Exercises
1305
Chapter 5
1311
Chapter 6
1313
Chapter 8
1314
Chapter 9
1315
Chapter 10
1316
Chapter 12
1317
Chapter 13
1319
Chapter 14
1320
Chapter 15
1321
Chapter 16
1322
Chapter 17
1323
Chapter 19
1324
INDEX
1327
Copyright

Common terms and phrases

References to this book

About the author (2008)

D.S. Malik is a Professor of Mathematics and the first recipient and current holder of The Frederick H. and Anna K. Scheerer Endowed Chair in Mathematics at Creighton University. Dr. Malik received his Ph.D. from Ohio University in 1985 and has published more than 50 papers and 18 books on abstract algebra, applied mathematics, graph theory, fuzzy automata theory and languages, fuzzy logic and its applications, programming, data structures, and discrete mathematics.

Bibliographic information