vart's code added the filenames together. Each time through the loop the name of the file became longer. First file is called "offspring1.txt", the second "offspring1.txtoffspring2.txt" etc.
Now...
Type: Posts; User: Prometheus
vart's code added the filenames together. Each time through the loop the name of the file became longer. First file is called "offspring1.txt", the second "offspring1.txtoffspring2.txt" etc.
Now...
I want to read a file, change the data and create say 50 new files from the original file, all numbereder 1 to 50.
So let's say that the original file is called "file.txt" then I want the others...
I just looked up what a reference is in one of my old books. Yes, I didn't remember.
After some fiddeling it seems that everything is now actually working.
Now I can sleep peacefully. Thanks.
I meant that if I try this:
Defining the function
void check(char triplet[2], ofstream file);
Then creating the ofstream and then calling the function:
Ok it seems I can slowly fix the bugs.
But I have one major problem of a slightly different nature.
I have a function that checks the ABC-combinations and then writes to a file.
But I have...
I will post the exact error concerning invalid conversion of char and const char later. I am on a different computer right now.
Using C++ style, you mean using std::string? I will if it's...
Today I got back to a little programming after a long time.
Ok, the thing I am trying to do is read a DNA-like code from a text file. It consists out of A, B, C and D's This all works.
...