Re: C++ Game Error.

There are two things you are missing to get to the point to be programming a game:

The first thing you are missing are the fundamentals of the language like syntax, declaring and calling functions, how to read error messages, user defined types, etc.

The second thing you are much missing is "how to think in C++". That mindset is a middle ground of the purely Object Oriented Programming point of view of Java programmers, and the eye for efficiency and procedural approaches of C programmers.