Buy the book on Amazon






"Learn to Program Using C++ on the Raspberry Pi" Revised Edition

by Phil Gardner (2017)


Zero-Index Technical Publishing - Devon, UK

ISBN: 978-0-9957918-1-7

A4 format paperback - 574 pages.

More than 200 programs included.

Over 300 screenshots and diagrams.

Typeset, printed and bound in Devon.



Details on Amazon - Click here!



Available to Amazon customers in the UK, Europe and US.

Also available by mail order and at various Raspberry Pi/STEM events in the UK.

Enquiries: zero.index.publishing@gmail.com


Over 200 C++ programs for you to try, each illustrating important ideas and techniques.

Harness the power of C++ with the GNU Compiler Collection - already included for FREE on any Raspberry Pi that uses the Raspbian or Debian operating system.


Chapter 1: Getting things up and running.
Chapter 2: Writing simple code.
Chapter 3: Data-types and values.
Chapter 4: Keyboard input and screen output.
Chapter 5: Using operators to process data.
Chapter 6: Making decisions.
Chapter 7: Repetition using loops.
Chapter 8: Characters and text strings.
Chapter 9: Arrays of data.
Chapter 10: Functions.
Chapter 11: Files of data.
Chapter 12: Structures, pointers and memory.
Chapter 13: Objects and classes.

End of chapter summaries, exercises and answers are included.

Screenshots, explanations and diagrams throughout to help you understand new ideas and to show you how each program works.

Appendices of useful information at the back of the book to help you write and debug your own C++ programs, including: ASCII codes, C++ reserved words, how to find common errors, useful Linux commands and compiler options, common colour codes, how to view programs as assembly source and machine code, glossary of terms.


Learn more about important computing topics along the way, including: compilers, low-level code, binary, hexadecimal, overflow, memory, sorting, searching.

Ideal for Raspberry Pi enthusiasts, hobbyists, students or teachers.

Most of the programs are suitable for beginners or anyone that has used other procedural programming languages.


No prior knowledge of programming necessary. If you have previously tried any programming in Python or any other language, this is an ideal next step... you'll be surprised at how fast simple programs can be executed by your Raspberry Pi.





Although written with the Raspberry Pi user in mind, the code may be compiled on any Ubuntu Linux machine or Apple Mac that has GCC installed. Some programs may also be used with the MinGW compiler for Microsoft Windows.