Starting Out with C++: From Control Structures through Objects covers control structures, functions, arrays, and pointers before objects and classes in Tony Gaddis’s hallmark accessible, step-by-step presentation. His books help beginning students understand the important details necessary to become skilled programmers at an introductory level. Gaddis motivates the study of both programming skills and the C++ programming language by presenting all the details needed to understand the “how” and the “why” — but never losing sight of the fact that most beginners struggle with this material. His approach is gradual and highly accessible, ensuring that students understand the logic behind developing high-quality programs. As with all Gaddis texts, clear and easy-to-read code listings, concise and practical real-world examples, and an abundance of exercises appear in every chapter. Updates to the 9th Edition include revised, improved problems throughout and a new chapter featuring completely rewritten and expanded material on the Standard Template Library (STL).
Features and benefits
MyLab gives you the tools you need to learn — and to get a better grade.
- Personalized study tools: Show you what you know, what you don’t, and where to spend your time to fill the gaps.
- Immediate feedback: On assignments and quizzes — and assistance with each problem if you need it — helps you get unstuck.
- Mobile eText: Lets you learn on your terms, wherever you are.
Table of contents
1. Introduction to Computers and Programming
2. Introduction to C++
3. Expressions and Interactivity
4. Making Decisions
5. Loops and Files
7. Arrays and Vectors
8. Searching and Sorting Arrays
10. Characters, C-Strings, and More about the string Class
11. Structured Data
12. Advanced File Operations
13. Introduction to Classes
14. More about Classes
15. Inheritance, Polymorphism, and Virtual Functions
16. Exceptions and Templates
17. The Standard Template Library
18. Linked Lists
19. Stacks and Queues
21. Binary Trees
Appendix A: The ASCII Character Set
Appendix B: Operator Precedence and Associativity
Online The following appendices are available at www.pearsonhighered.com/gaddis.
Appendix C: Introduction to Flowcharting
Appendix D: Using UML in Class Design
Appendix E: Namespaces
Appendix F: Passing Command Line Arguments
Appendix G: Binary Numbers and Bitwise Operations
Appendix H: STL Algorithms
Appendix I: Multi-Source File Programs
Appendix J: Stream Member Functions for Formatting
Appendix K: Unions
Appendix L: Answers to Checkpoints
Appendix M: Answers to Odd Numbered Review Questions
Case Study 1: String Manipulation
Case Study 2: High Adventure Travel Agency–Part 1
Case Study 3: Loan Amortization
Case Study 4: Creating a String Class
Case Study 5: High Adventure Travel Agency–Part 2
Case Study 6: High Adventure Travel Agency–Part 3
Case Study 7: Intersection of Sets
Case Study 8: Sales Commission
All the material you need to teach your courses.Discover teaching material