[求助]一个在string中插入vector的问题
#include<iostream>
#include<vector>
#include<string>
using namespace std;
int main()
{
string str(100,'n');
char *p[8]={"sdff","fghfgh","dfgdh","dfgss","dffh","gh","fghgfh"};
vector<char*>svec(p , p+7);
string::iterator iter1=str.begin();
cout<<"output string to there:"<<endl;
str.insert(str.begin(),svec.begin(),svec.end()); //不能通过devcpp的编译!!
cout<<str;
cin.get();
return 0;
}