Right now I am trying to use a vector of charpointers to hold a bunch of individual strings
vector<char*> strings(10);
The individual string is of form char indString[100]
And I am doing this to assign each one
for (int i=0; i < iLimit; ++i){
gets(indString);
strings[i] = indString;
}
But when I output everything
for (auto & stri: strings) cout << stri << endl;
I just get a bunch of repeats of the last string read.