How to Think Like a Computer Scientist

C++ Version

by Allen B. Downey.

Download How to Think Like a Computer Scientist: C++ Version in PDF.

How to Think Like a Computer Scientist: C++ Version is a free textbook available under the Creative Commons Attribution-NonCommercial 3.0 Unported 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.

The book is available in a variety of electronic formats.

  • The LaTeX source code is available as a gzipped tar file, or you can check it out from this SVN repository.

  • Precompiled copies are available in PDF and Postscript . Users are free to download and print these files.

  • 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.