title: Strange problem with std::cout
body: <p>I have 2 loops:</p>
  
  <pre><code>//Loop 1
  for ( vector&lt;string&gt;::iterator iter = vecv.begin() ; iter != vecv.end()  ; iter++)
      {
          cout &lt;&lt; "-----IN LOOP----" &lt;&lt;  *iter;
      }
  
  //Loop 2
  for ( vector&lt;string&gt;::iterator iter = vecv.begin() ; iter != vecv.end()  ; iter++)
      {
          cout &lt;&lt; "-----IN LOOP----" &lt;&lt;  *iter &lt;&lt; endl ;
      }
  </code></pre>
  
  <p>Now vecv is a string vector and contains 2 strings:</p>
  
  <p><code>65</code> and <code>A000</code> respectively.</p>
  
  <p>Now the loop 1 Does not print anything, in fact the loop seems to not run at all.</p>
  
  <p>However on adding the <code>endl</code> as you see in Loop 2, it gives this output:</p>
  
  <pre><code>-----IN LOOP----65
  -----IN LOOP----$A000
  </code></pre>
  
  <p>What is happening exactly?</p>
  
  <p>Mind you i am facing this problem only in Visual Studio 2010 and not Dev-C++!!</p>