I'm trying to make an string pointer to contain multiple filenames: string* myList = new string[max];
But when I add the second, third, fourth, ... value using:
1 2
for (int i = 0; i < max; i++)
myList[i] = ...somevalue...;
the myList variable will be blank.
What am I doing wrong? If this can't work, what is another way to store filenames as some kind of list?
Because I was not familair with it yet, know I searched for it and learned it. I replaced it with a vector and it works now, I still don't know why this code doesn't work but that's ok. I'll mark it as solved.