title: C++ Do-While loop not accepting input multiple times
body: <p>I am a novice C++ programmer, and I'm having some trouble with this program. I want to input points, Cartesian plane style, but this code is acting like it doesn't see the <code>cin</code> any time but the first. <code>A</code> is a class that holds the points. When run, the program I am able to input one pair, but when it gets to the while loop, it says <code>Enter pair (0,0 to finish) Enter pair (0,0 to finish)...</code> repeatedly.</p>
  
  <pre><code>do {
      cout &lt;&lt; "Enter pair (0,0 to finish) ";
      cin &gt;&gt; x &gt;&gt; y;
      A.add( x, y );
  } while ( !(x==0 &amp;&amp; y==0) );
  </code></pre>
  
  <p>Any ideas?</p>