- What is the difference between C# and C++? Is it much of a difference? |
Well, there
are some differences. C# takes a somewhat more modern approach to things and comes with a large library providing a lot of functionality while C++ restricts itself to important core functionality in its standard library. But of course you can extend that at any time by using additional libraries.
The syntax is very similar, at least. If you know C++, you'll find it easy to learn C# and vice versa. I'd suggest you try both.
Both are suitable for game programming, although C++ is still more popular for games at this point in time.
- What are some good books to learn C++ from? Preferably game programming, but gust a general programming reference is perfectly fine as well |
Books that you should read are: C++ Primer by Lippman/Lajoie/Moo and Effective C++ by Scott Meyers (in that order!). As far as I'm concerned that is quite enough reading, but if you wish you can also read The C++ Programming Language (Stroustrup), Exceptional C++ (Sutter), More Exceptional C++ (Meyers again) and perhaps Modern C++ Design by Andrei Alexandrescu to refine your style.
- What are some of the best sites to learn C++ in? |
This site (but only as a reference) - leave the actual teaching to the books.
- Could I possibly have a reference code for a game of some sort to look through and learn from? I would prefer one with some commentary, but like the books, none is good too, I can always find a way to identify what the commands do eventually. |
You could look for some small open source game written in C++, but I don't think that's a good idea right at the beginning. Chances are that you won't understand too much.
Just work through the SFML tutorials to start and create some small games like a Breakout clone, Space invaders, Pacman, Tetris, a Mario-like platformer etc. - or whatever else comes to mind. The next step could be a multiplayer game.
Once you're experienced in C++ and 2D game programming, you can start with 3D programming. By then you probably won't need much guidance anymore.