Is this a good book for a beginner to start with? I know some basic programming from videos on youtube and how much of the basics of c++ should i know before i jump into a game library like sdl? I really want to start making my own games and i find console programming really boring.
I recommend "Programming -- Principles and Practice Using C++" by Stroustrup. I personally read the whole book, took my 1.7 years. It was my first book on programming ever. Best book I ever read, he explains things so well. Consoles might seem boring at the beginning, but it's the only way to learn the fundamentals of programming. A terminal is just a form of I/O. In the middle of the book he presents GUI programming. Once you know that basics then and only then can you begin to expand your knowledge and get into game programming. Have in mind that there is a lot of math in game programming, or so I've heard.
C++ Primer only introduces console programs. In fact, the only book I own that introduces graphical programming to beginner c++ programmers is "You Can Program in C++" by Francis Glassborow (who is a well respected expert in C++). In that book you get shown how to use a graphical library called 'playpen' and get to write programs using it as you work your way through. Compared to other C++ books out there, the price is really very cheap. Maybe this book might interest you if your looking for something different.