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