stl 中的vector
#include "stdafx.h"
#include <vector>
#include <iostream>
using namespace std;
int main(int argc, char* argv[])
{
vector<char> chs;
chs.push_back('d');
chs.push_back('a');
chs.push_back('c');
chs.push_back('u');
vector<char>::iterator chIt=chs.begin();
while(chIt!=chs.end())
{
cout<<chIt++;
}
return 0;
}
请问我的这个输出为什么是
dacu??1acu??1cu??1u??1Press any key to continue
而不是 dacu呢