Appendix A

Intermediate C++ Review

This appendix provides a quick review of intermediate C++ concepts used throughout the book. The concepts roughly correspond to typical topics in Computer Science 1 and 2 courses. If you are rusty with C++, you should spend extra time reviewing this material.

References, Pointers, and Arrays

Although references, pointers, and arrays might seem like separate concepts, they are closely related. Furthermore, because pointers are often stumbling points for C++ programmers, it’s worthwhile to spend some time reviewing their intricacies.

References

A reference is a variable that refers to another variable that already exists. To denote a variable as a reference, add an & immediately after the type. For example, ...

Get Game Programming in C++: Creating 3D Games, First Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.