I’ve got a problem:
When the number of input files is known, for example: 2 files, the declaration will be very simple:
int main(int argc, const char** argv) {
const char* inputfile1 = argv[1];
const char* inputfile2 = argv[2];
const char* outputfile = argv[3];
cout << "Appending "
<< inputfile1 << " and "
<< inputfile2 << " to "
<< outputfile << "..." << endl;
...
...
}
But now the NUMBER of input files is unknown, how to make the declaretion? Thx
Use loops, Luke!