Search:

Type: Posts; User: Prometheus

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    946

    vart's code added the filenames together. Each...

    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...
  2. Replies
    5
    Views
    946

    File I/O, integers in the file name

    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...
  3. I just looked up what a reference is in one of my...

    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.
  4. I meant that if I try this: Defining the...

    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:
  5. Ok it seems I can slowly fix the bugs. But I...

    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...
  6. I will post the exact error concerning invalid...

    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...
  7. Need help with probably a very simple char sting issue

    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.
    ...
Results 1 to 7 of 7