Mega Code Archive
Access field for vector
#include
#include
using namespace std;
int main(int argc, char** argv)
{
vector stringVector(10, "hello");
for (vector::iterator it = stringVector.begin();it != stringVector.end(); ++it) {
it->append(" there");
}
}