Re: Newbie writing a game...
I've don't have a whole lot of experience with 2d stuff using C++, but I have created a few simple games.
I chose to use SDL. You can find some very good tutorials on it here: http://www.lazyfoo.net/SDL_tutorials/index.php
It covers setting up SDL aswell.
Hope this helps.
Re: Newbie writing a game...
You can play around with OpenGL for custom graphics and GUI packages for buttons and controls etc, but if what you're interested in is the game, I'd say just get yourself a game engine and go from there. It'll take care of the low-level stuff for you a lot better than you can yourself.