A more widely known (but incomplete) tutorial is located here. I don't know if that helps.
Use SDL_PollEvent() instead of SDL_WaitEvent(). The reason for this is that WaitEvent waits untill an event happens (pausing the program) while PollEvent does not. Second the events should be handled in a loop ie: while(SDL_PollEvent(&e) {...}
not SDL_WaitEvent(&e);...
The best thing for you do do is follow the other tutorials that I linked to since the tutorial you are using does not seem to be very well written. (you can just quickly reed through the stuff you already know)