title: how to read hh, mm and ss in c++ in "hh:mm:ss" format
body: <p>How cin will read hh, mm and ss while the input format is <strong>hh:mm:ss</strong>
  If I do</p>
  
  <pre><code>cin&gt;&gt;hh;
  cout&lt;&lt;":";
  cin&gt;&gt;mm;
  </code></pre>
  
  <p>then it will come in the next line which I don't want.</p>