title: The cin.ignore removing first character the second time function is being called
body: <p>Can anyone tell me what is wrong with this? Without cin.ignore, the getline would not work, and after the first time when I call the function again, the first character is removed. So far I have tried using stringstream instead of getline, cin.sync(), cin.clear(), but nothing seems to work. Also the reason why I am using getline, is because some streets have spaces between them, so simply using cin would not work in this case</p>
  
  <pre><code>std::cout &lt;&lt;  "Enter Street Name 1: " ;
  std::cin.ignore(1,EOF);
  std::getline(std::cin,s1);
  std::cout &lt;&lt;  "Enter Street Name 2: " ;
  std::getline(std::cin,s2);
  std::cout&lt;&lt;"Your first street was: "&lt;&lt;s1&lt;&lt;" Your second street was: "&lt;&lt;s2 &lt;&lt;". Please look at the map to find the intersection of " &lt;&lt; s1 &lt;&lt; " and " &lt;&lt; s2 &lt;&lt;std::endl;
  </code></pre>
  
  <p>Output</p>
  
  <pre class="lang-none prettyprint-override"><code>Enter Street Name 1: Bloor
  Enter Street Name 2: Yonge
  Your first street was: Bloor Your second street was: Yonge. Please look at the map to find the intersection of Bloor and Yonge
  Enter Street Name 1: Bloor
  Enter Street Name 2: Yonge
  Your first street was: loor Your second street was: Yonge. Please look at the map to find the intersection of loor and Yonge
  Enter Street Name 1: Bloor
  Enter Street Name 2: Uong
  Your first street was: loor Your second street was: Uong. Please look at the map to find the intersection of loor and Uong
  </code></pre>