title: how do you "Press ENTER to continue, anything else to quit" in C++
body: <p>Sorry, I'm sure this question gets asked a million times. I've searched, and I've found answers for "Press ENTER to continue", but for the life of me, I can't find the answer to my question.</p>
  
  <pre><code>do{
     //something something
     cout&lt;&lt;"Press ENTER to continue or anything else to quit."&lt;&lt;endl;
     //Enter is pressed or something else
  }while(Enter is pressed)
  </code></pre>
  
  <p>here's what I'm trying to use it for</p>
  
  <pre><code>do{
     cout&lt;&lt;"Enter value: ";
     cin&gt;&gt;value[n];
  
     cout&lt;&lt;"Enter 'Y' to continue, anything else to quit"&lt;&lt;endl;
     cin&gt;&gt;reply;
  }while(reply == 'y' || reply == 'Y')
  </code></pre>
  
  <p>In place of "Enter 'Y' to continue. Anything else to quit." I just want an "Enter to continue, Q to quit".</p>
  
  <p><em>edit</em>: After implementing what Tony D showed, I now have</p>
  
  <pre><code>do{
      cout&lt;&lt;"Enter the person's first name, last name, and age."&lt;&lt;endl;
      cin&gt;&gt;list[n].firstName&gt;&gt;list[n].lastName&gt;&gt;list[n].age;
  
      n++;
      cout&lt;&lt;"Press ENTER to continue. 'Q' to quit. ";
      std::getline(std::cin, reply);
  }while (std::getline(std::cin, reply) &amp;&amp; reply != "Q" &amp;&amp; reply != "q"); 
  </code></pre>
  
  <p>it works, but I feel like something is still wrong. If I do just <code>while (std::getline(std::cin, reply) &amp;&amp; reply != "Q" &amp;&amp; reply != "q");</code> 
  Q or q won't exit the loop and Enter just takes me to the next line. I tried this as a do while and a while loop. </p>