I am very new to c++, and I just started reading a book called (you guessed it) "Beginning C++ Through Game Programming." I read several positive reviews of the book before I bought it, but the very first program in the book generated errors. I thought maybe I had typed it in wrong, so I went to their website and downloaded the source code, which is here:
Thanks for your replies everyone. Your were correct, Cronnoc, that was the problem. But I just wanted to clarify that the code that I pasted into my query was not typed in by me -- that was the code that I downloaded from the book's website. Which means there was, in fact, a typo in the book. Kinda doesn't bode well for the book. But I'll keep at it anyway, because I do like the way this book is written.