title: how to insert data into std::map and show data from std::map in vc6
body: <p>i am using vc6. what is wrong in code below, i cant find out:</p>
  
  <pre><code>std::map&lt;int, std::vector&lt;int&gt; &gt; myTemplate; 
  
  //append data to map
  int temp=0;
  for (int i=0;i&lt;=5;i++)
  {
      std::vector&lt;int&gt; tempVector;
      temp+=111;
      tempVector.push_back(temp);
      std::pair&lt;int, std::vector&lt;int&gt; &gt; myPair;
      myPair=std::make_pair(i,tempVector);
      myTemplate.insert(myPair);
  }
  
  //show data from map
  std::map&lt;int, std::vector&lt;int&gt; &gt;::iterator iter;
  iter=myTemplate.begin();
  while(iter!=myTemplate.end());
  {
      std::vector&lt;int&gt; tempVector;
      std::vector&lt;int&gt;::iterator sencondIter=iter-&gt;second.begin();
      int myValue=*sencondIter;
      CString cstrTemp;
      cstrTemp.Format("%d is the int type value in vector&lt;int&gt;",myValue);
      AfxMessageBox(cstrTemp);
  
      iter++;
  }
  </code></pre>