title: Using cin.get(); Twice
body: <p>I don't understand why it might be needed twice, this is a quote from the book I am reading;</p>
  
  <blockquote>
    <p>The cin.get() statement reads the next keystroke, so this statement causes the program to wait until you press the Enter key. (No keystrokes get sent to a program until you
    press Enter, so there’s no point in pressing another key.) The second statement is needed if
    the program otherwise leaves an unprocessed keystroke after its regular input. For example, if you enter a number, you type the number and then press Enter.The program reads
    the number but leaves the Enter keystroke unprocessed, and it is then read by the first
    cin.get().</p>
  </blockquote>
  
  <p>I place it in the source code and don't see the point of it being there twice.</p>
  
  <p>You type in some numbers and press enter it ends the program, only different is you press enter twice if nothing is entered before ending.</p>
  
  <p>The point of it is to pause the program, and it does that so why the use of it twice?</p>