title: C++ and SDL: How does SDL_Rect work exactly?
body: <p>I'm working on some SDL stuff and I've run into some trouble when trying to set the location of a loaded BMP.</p>
  
  <p>Here's the code.</p>
  
  <pre><code>while(event.type != SDL_QUIT) //The game loop that does everything
  {
      SDL_Rect *location;
      location = SDL_Rect(600,400,0,0);
      SDL_PollEvent(&amp;event); //This "polls" the event
      //Drawing stuff goes here
      SDL_BlitSurface(zombie, NULL, buffer, &amp;location);
      SDL_Flip(buffer); //Draw
  }
  </code></pre>
  
  <p>It won't compile. What am I doing wrong?</p>