I was wondering is it possible to write test case file and use that test cases as input file and produce another output file in the same program in c++.
So far, I have tried this:
for(int i=2;i<=20000;i++)cout<<i<< " ";
cout<<"Finished writing test cases"<<endl;
//rest of the code including cout etc.//
Remove this line :
Put this line at the end of the program, or after the part when you are sure you won't write to a file instead of
I think the code will work as you expect it to be.