title: C++ Tic-Tac-Toe User Input Assignment
body: <p>For some practice I decided to make a console tic-tac-toe game. Here is a snippit from <code>int main</code></p>
  
  <pre><code>int main()
  {
      //Small 2x2 board (for now), hense the 4 options below
      int op1, op2, op3, op4;
  
      //Draws the board on the screen, separate function I've made
      board(op1, op2, op3, op4); 
  
      //asking the user the first option, which is for X not O
      //User will enter 1, 2, 3, or 4 and an X should appear in corresponding quadrant.
      cout &lt;&lt; "x? ";
      cin &gt;&gt; op1;
  }
  </code></pre>
  
  <p>So what I want to happen is for the board to appear first, and then afterwards have the console ask the user to enter in where to put the X's and the O's. </p>
  
  <p>But what ends up happening here is that the user's option doesn't show up on the board, because the user enters in the option after the board has been loaded rather than before.</p>
  
  <p>How can I overwrite the original assignment of <code>int op1</code> to the user's input so that it automatically places it on the board? Thanks!</p>
  
  <p>P.S: I didn't want to cheat an look up source code of a tic-tac-toe game :P</p>