These are programming books are good to understand the concepts easily. Try coding the examples and make sense of what is said.
C++ for Dummies by Stephen Davis(covers basic first then advanced)
Thinking in C++ by Bruce Eckel. (It starts you off with Object Oriented C++)
C++ without Fear by Brian Overland(covers basic first then advanced)
You can read any books about data structures and analysis of algorithms in C++ once you got a good handle on the language. It is super useful for games and other programs and will broaden your horizons on what data structures can be built based on what you already learned and what you will need to know. How much time a function takes to execute and how much memory is used to execute that function is also good to know which is where analysis of algorithms skill is good to have.
In terms of C++ game programming, I heard C++ itself does not come with a built-in library so you will need to import the library you found online and import into the IDE you are using.
Some libraries I found using a google search are SDL and Allegro. Try these libraries and see if you like it.
If you are still learning C++, you should make sure you have a well-rounded understanding of using C++ before attempting game development. Game programming requires a good understanding of the programming fundamentals and graphics programming. The idea applies to other programming languages like Java which I use for game programming which requires the knowledge I mentioned in the previous sentence.
I know procedural programming in C++ but very few of the object-oriented stuff. I'm more experienced in Java.
However, I can start you off with this example because everyone sees the hello world program when they first learn c++ or any language.
using namespace std;
int main ()
cout << "Hello World!";
Edited by warnexus, 01 May 2013 - 09:59 PM.