my gaming past, present and future
Wednesday June 19th 2013

Interesting Sites

Insider

Archives

Beginning C++, Part 2

beginning c++ bookAfter further investigation and actual use, I would like to now recommend Michael Dawson’s book “Beginning C++ Game Programming”. I went to the book store, rifled through a ton of C++ programming books and after getting through my filter I settled on this book for my son Michael to start with.

Even though the title of the book sounds like you’ll be getting into a bunch of fun game stuff the reality is that all the focus for the first 8 or so chapters is just on learning C. C++ comes in during the next couple chapters and builds upon what you learned about C but doesn’t go too far – it keeps it simple.

Along the way you use the language to construct a few simple games that are all text-based which I believe is a great way to just focus on learning the language and some basics about game construction. So don’t be expecting to be drawing graphics and making sounds and using the mouse on a graphical screen – you need another book to do that and it should be AFTER you get through this one.

I got Michael a book on coding game graphics that he’s diving into now since he finished this book. I’m proud to say that he can program in C++ now after finishing this book and it’s not an overly long one either. It’s also very easy to understand with good explanations for the concepts.

Some things I would have liked to have seen in the book were explanations of switch() before its use, using struct{} and explanations of complex data structures, and explanations and use of printf. The book relies heavily on cout and cin which I’m not too fond of because of the syntax but they’re easy to understand when it comes to printing string objects. When Michael was going through the book I taught him printf and had him convert all the couts in the book to printfs – it showed him more about what goes on inside those string objects and was less typing when he needed to print %d, %s, etc. arguments.

One important note: the gaming college Full Sail uses this book as their introductory programming course book. Michael went into Full Sail right after finishing this book so he got to do it all over again. Much easier the second time!

Try it.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)

Reader Feedback

3 Responses to “Beginning C++, Part 2”

  1. Luke says:

    Great recommendation! For me, the book is a wonderful intro to the language. I was trained in Java years ago, but never used it for my current job –so I got rusty. Now, I want to get back into programming, but since I was out for so long, I knew I would need an intro book. “Why not C or C++ ?” I thought. This way, I could use my knowledge to make a game (some day). As John stated, this book uses game “themes” for coding examples –not actual games. The expectations need to be realistic.

  2. Hbomb says:

    Got this book and have found it awesome, another suggestion for anyone just starting is DarkGDK a free game engine thats really easy to use for 2D games and 3D games, this book goes hand in hand

  3. Geoff says:

    Hi John.

    I was wondering what book you got your son on coding graphics after he finished this one.

    Thanks.

    -Geoff

Leave a Reply