Is there anyone knows that how to store a series of strings? For example, there are different files names: "FileA.txt", "FileB.txt", etc. How to store these strings in order so that I can quote them later?
But the thing is I don't know how many files there are. Actually the whole program is about asking how many files firstly, and then combine all of them line by line. Therefore I think there need to be an array which each element can store a string, which is the name of each file.
You should probably use one of the dynamic containers for this. A Vector or List of std::strings would be the easiest to use if you have never done this before, but anyone of them should do given the parameters you've listed.