Lesson 1 – Structure of a Program

July 17, 2010 at 4:02 am (C++, Programming Tutorials) (, , , , , , )

This is a first in a series of exercises that I will be writing to accompany (and eventually surpass) the beautifully written C++ tutorial from the website cplusplus.com (you can download the whole textbook as a .pdf here). The goal is to start out (requiring no prior programming knowledge) as a set of accompanying exercises, test and reinforce your understanding of C++ as you work your way through the tutorial supplied by cplusplus.com. As we complete the tutorial however, we will begin to branch off and explore some mathematical equations for matrices as well as collision detection on a 2D plane. We will study, in detail, data management and pointers (pretty dense stuff), eventually leading up to the creation of an ASCII based game engine (running out of a standard command shell). This game engine will handle collision detection, “graphics” rendering and “screen” buffers, z-order, file loading, and much more. This course will be designed to be as friendly and inviting as possible, and any constructive criticism is welcome.

Download the Exercises here:Lesson 1 – Structure of a Program

Download the Answer Key C++ Source Code:Lesson 1 Answer Key

Permalink Leave a Comment