A C++ Book¶
for Undergraduate Computer Science Majors¶
by Jeffrey Elkner (with liberal borrowings from the work of Allen B. Downey and Paul Bui)
illustrated by Natalia Cerna
Last Updated: 20 November 2024
Chapter 1 The way of the program
Chapter 2 Variables, types, and expressions
Chapter 3 Functions
Chapter 4 Conditionals and recursion
Chapter 5 Fruitful functions
Chapter 6 Iteration
Chapter 7 Strings
Chapter 8 Structures
Chapter 9 Pointers and arrays
Chapter 10 Vectors
Chapter 11 Member functions
Chapter 12 Vectors of objects
Chapter 13 Objects of vectors
Chapter 14 Classes and invarients
Chapter 15 Extending classes
Chapter 16 Vectors of vectors
Chapter 17 Reusing classes
Chapter 19 Advanced topics
Chapter 20 Linked lists
Chapter 21 Stacks
Chapter 22 Queues and priority queues
Chapter 23 Trees
Chapter 24 Heaps
Appendix A Code source
Appendix B Debugging
Appendix C A development environment for unit testing
Appendix D Customizing and contributing to the book