I\'m trying to write a program in C++, which creates some files (.txt) and writes down the result in them. The problem is that an amount of these files is not fixed at the begin
Sample code:
#include #include #include #include using namespace std; string IntToStr(int n) { stringstream result; result << n; return result.str(); } int main () { ofstream outFile; int Number_of_files=20; string filename; for (int i=0;i