//用list 中的元素 初始化 vector !!
#include<iostream>
#include<list>
#include<vector>
#include<string>
using namespace std;
int main()
{
char *arr[11]={"mary","lida","limeng","wangdogn","fengling"};
list<char*>clist(arr,arr+5);
vector<string>svec;
string str;
svec.assign(clist.begin(), clist.end()); //无法通过编译( vc++ 6.0)
for(list<char*>::iterator iter=clist.begin();iter!=clist.end();++iter)
cout<<*iter<<endl;
cout<<" "<<endl;
for(vector<string>::iterator iter1=svec.begin();iter1!=svec.end();++iter1)
cout<<*iter1<<endl;
return 0;
}