title: Cin isn't waiting for input
body: <p>This is the program:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;stdlib.h&gt;
  
  
  using namespace std;
  
  int main(){
  
  
  string strKingdom = "";
  bool conquered_me;//see if was conquered, was going to use this on other program and true = game over.
  int gold;
  int food;
  int citizens;
  int soldiers;
  
  
  
  cout &lt;&lt; endl &lt;&lt;"Name of kingdom: ";
  cin &gt;&gt; strKingdom;
  cout &lt;&lt; endl &lt;&lt; "were you conquered (true/false): ";
  cin &gt;&gt; conquered_me;
  cout &lt;&lt; endl &lt;&lt; "How many gold do you have?:";
  cin&gt;&gt;gold;
  cout &lt;&lt; endl &lt;&lt; "How many food do you have?:";
  cin &gt;&gt; food;
  cout &lt;&lt; endl &lt;&lt; "How many citizens do you have?:";
  cin &gt;&gt; citizens;
  cout &lt;&lt; endl &lt;&lt; "How many soldiers do you have?:";
  cin &gt;&gt; soldiers;
  
  
  return 0;
  }
  </code></pre>
  
  <p>The problem is that when I compile it the progam only lets me insert the first 2 variables and then it shows the rest of the questions (after compile):</p>
  
  <p>Name of kingdom: steve</p>
  
  <p>were you conquered (true/false): false</p>
  
  <p>How many gold do you have?:
  How many food do you have?:
  How many citizens do you have?:
  How many soldiers do you have?:</p>