If i had to make a suggestion start with this for the 2d game aspect:
http://www.kathekont...uide/index.html (note: This tutorial set was written for win32 but it DOES work in Linux, not Mac though)
Its an absolutely amazing in depth guide on how to build a 2d (overhead) game engine ONLY using c++ console. No need to worry about graphics yet, get the basics first.
A good C++ resource I would suggest is C++ Primer Plus by Stephen Prata its an amazing book for learning c++ with little programming knowledge.
Edit: Oh and I completely agree with DZee just write the source files in something like Notepad++ (google it) and then just compile using your terminal(or console i dont use mac) There is nothing more useful than seeing the raw compiler data when you have some kind of compile error.