title: Error: Expected a Statement / C++ / Visual Studio
body: <p>As I plan to make a small game to test myself on what I know so far in C++, I found that using this is giving me an error at the location of the "else".
  Can anyone help?</p>
  
  <pre><code>int lvlup()
  {
      if (user.xp &gt;= user.maxxp)
          user.xp = 0;
          user.maxxp + 10;
          user.maxhealth += user.maxhealth * .5;
          user.defense + 2;
          user.attack + 3;
          user.lvl + 1;
      else
          return 0;
  };
  </code></pre>