maybe it is pretty easy to do, but i cant make it for 2 days...
I want to create files "file1.dat", "file2.dat",... in dependency of integer counter N.
How do i create such strings and convert it into const char* for calling ofstream.open().
My testcode looks like:
1 2 3 4 5 6 7
int N=5;
char s [10];
s=itoa(N,s,10);
constchar* t="test"s".dat";
ofstream outfile(t);
but it obviously fails. I tried lot of other things, also using string library, but i dont get it ._.