#include<iostream>
//#include<list.h>#include<iterator>#include<vector>#include<string>using namespace std;void main(){ string s1[4]={"fine","fish","fashion","fate"}; string s2[2]={"busy","bate"}; string s3[3]={"silly","singers"}; vector<string>word(4); copy(s1,s1+4,word.begin()); ostream_iterator<string,char>out(cout,"\t"); copy(word.begin(),word.end(),out); cout<<endl; copy(s2,s2+2,back_insert_iterator< vector<string> >(word));//<vector<string> (必须有一个空格)> copy(word.begin(),word.end(),out); cout<<endl; copy(s3,s3+2,insert_iterator <vector<string> >(word,word.begin())); copy(word.begin(),word.end(),out); cout<<endl; return;}