Honestly I can't do better then this guy here: http://www.sdltutorials.com/sdl-tutorial-basics/ for your purposes you only need to go up to the fourth tutorial and I can help you from there. It shouldn't take too long I'll keep checking this thread because there's really no error handeling in his code.