Think C++

by Allen B. Downey.

Download Think C++ in PDF.

Supporting code is in this GitHub repository.

Think C++ is a free textbook available under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Readers are free to copy and distribute the text; they are also free to modify it, which allows them to adapt the book to different needs, and to help develop new material.

  • Prof. Thomas Scheffler has translated the book for use with C (rather than C++). His version, with exercises in German, is available here.

    This book has also been translated into Chinese.

    Donate towards my web hosting bill!

  • Are you using one of our books in a class?

    We'd like to know about it. Please consider filling out this short survey.


    Think DSP

    Think Java

    Think Bayes

    Think Python 2e

    Think Stats 2e

    Think Complexity