I am looking for a place where I can download a simple example of a game and the source code that is commented. I would really like it to be a simple game, something like a box moving around or something, just to get the structure of how a game is made.
Check it out! Poképong! It's free! It's on sourceforge! I just got it going, sourceforge approved the project like, two days ago! You can browse the source from your web browser, and then contribute to it if you want! I will make some documentation or an MS Paint drawing on how I approach the design at some point!
planetsourcecode.com is a good site that has many games that a total beginner to a C++ expert has made are posted. All source code is freely avaliable. Do not expect anything like Doom, but they are not bad games.
What type of games? The whole of sourceforge.net is an excellent source for anything code related. Just click on projects and filter for games. However you may find projects hosted there to be too complex (some too messy)... others may not. Search a little.
But if you have a specific idea of what you are looking for, we may help (or not) known a little better.
I am looking for something really simple. I just want to get a feel of how a game is structured. What is is which file and so on. So the simple the better really. So something like a box/character/car moving around would be perfect. The simple the better.
What type of games?
Like mario suggested, sourceforge.net has some excellent examples of games written in C,C++. The only slight drawback to this ( as mario suggested ) is they can be quite complex. If it is really basic games you are after, then check out the site I stated above.
It might be a good idea to start at a text-based game level first. Sure, using ASCI graphics is boring, but you get the general feel of how a better game is made up.