Hello all,
Let's say I have a vector like so:
vector < char *>rlist;
and
char* word;
Let's say char* word was pointing to a 9 character word, like
"statement".
If I were to do
rlist.push_back(word)
I would get a seg fault. I believe this is because push_back expects a char*, which is only 1 byte long.
Anyway I can "increase" the size of char* so that the push_back function can work properly with a char* that is greater than 1 byte?
Thanks.