title: When I use Ctrl-C to terminate the input , the output is reduced in visual studio 2013
body: <pre><code>//Program to terminate the input by ctrl-c    
  #include&lt;iostream&gt;
  #include&lt;vector&gt;
  #include&lt;string&gt;
  
  using namespace std;
  
  int main()
  {
      vector&lt;string&gt; vec;
      string word;
  
      while (cin &gt;&gt; word)
          vec.push_back(word);
  
      cout &lt;&lt; endl &lt;&lt; endl;
      auto beg = vec.begin();
      while (beg != vec.end())
      {
          //to print the vector
          cout &lt;&lt; *beg &lt;&lt; endl;
          beg++;
      }
  }
  </code></pre>
  
  <p>When in press control-c to terminate the input stream of...</p>
  
  <pre><code>ankur
  anshu
  singh
  ankit
  ashuto
  ashu 
  </code></pre>
  
  <p>I get...</p>
  
  <pre><code>ankur
  anshu
  si^CPress any key to continue . . .
  </code></pre>