Lets say I want to initialize the first element of a vector by 5000 bytes.
How to do it? Should I use strcpy or the likes?
Code:vector<string>big;
char buf[5000];
for(int i=0; i<5000;i++)
buf[i] = '\0';
strcpy(big[0].c_str(), buf);
or
big.push_back(buf);