//test.cpp
/*
int main()
{
string file1, file2, outfile;
cout<<"enter the input file name:";
cin>>file1>>file2;
cout<<"enter the output file name:";
cin>>outfile;
return 0;
}
*/
//filename1.txt
test1a.txt test1b.txt
out1.txt
//filename2.txt
test2a.txt test2b.txt
out2.txt
//filename3.txt
test3a.txt test3b.txt
out3.txt
//script
g++ test.cpp
./a.out
g++ test.cpp
./a.out
g++ test.cpp
./a.out
SO in linux, I just need run the script.
But I have lots of files to test, is that possible if I put all test filenames in one .txt file? such as
//filename.txt
test1a.txt test1b.txt
out1.txt
test2a.txt test2b.txt
out2.txt
test3a.txt test3b.txt
out3.txt
and how to write the script? (need a loop inside the script?)
Anyone has an idea ?
Thank you