Search:

Type: Posts; User: Ahlyis

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    998

    Huh. Learn something new every day. I knew a 0x...

    Huh. Learn something new every day. I knew a 0x prefix meant hexadecimal, but didn't realize octal was also implemented similarly.
  2. Replies
    4
    Views
    998

    Can you give the exact error you are getting? Is...

    Can you give the exact error you are getting? Is it a compile, link or runtime error?

    Why use goto statements instead of making the various routines into functions? As is, you may run into errors...
  3. Replies
    21
    Views
    2,309

    Well, I still don't know what is wrong with that...

    Well, I still don't know what is wrong with that code, but I found a workaround.

    First, I tried changing the ifstream to a pointer, but that just caused an Access Violation to occur as soon as I...
  4. Replies
    21
    Views
    2,309

    MERGESIZE is currently defined as 3 for debug...

    MERGESIZE is currently defined as 3 for debug purposes. Once I get the test cases working, MERGESIZE will be set to 1000 and iOffset and iLevel will be passed in to the final function.
  5. Replies
    21
    Views
    2,309

    Okay, I'm back again. Now I'm trying to...

    Okay, I'm back again.

    Now I'm trying to improve the efficiency of my file merging by merging multiple files at once. But I've again hit a snag. I suspect it is the same issue that CornedBee...
  6. Replies
    21
    Views
    2,309

    Thanks. I'll go away and stop bugging everyone...

    Thanks.

    I'll go away and stop bugging everyone now.

    Again, thanks.
  7. Replies
    21
    Views
    2,309

    The program is now working, and the performance...

    The program is now working, and the performance improvement is massive. I'm now looking at a different area to improve. Again related to files. This time, the issue is with the output files.

    I...
  8. Replies
    21
    Views
    2,309

    I made MainData into a global variable instead of...

    I made MainData into a global variable instead of local to main() and now the program seems to be functioning correctly.

    I'd still like to know what I was doing wrong before.
  9. Replies
    21
    Views
    2,309

    Okay, I tried again to convert the program to use...

    Okay, I tried again to convert the program to use the file once and leave it open until all the data is read. It crashed again.

    Here's the modified main() and LoadData() functions.


    int...
  10. Replies
    21
    Views
    2,309

    I want to thank everyone for taking the time to...

    I want to thank everyone for taking the time to respond. Thank you.



    For variables I want to use throughout the program, I prefer globals over passing them to every function and sub-function I...
  11. Replies
    21
    Views
    2,309

    I'm not using a memory checker, so I won't swear...

    I'm not using a memory checker, so I won't swear to it, but I am cleaning up all of the memory as far as I know.

    I use calloc and the rest due to familiarity. I learned C++ in school, but that was...
  12. Replies
    21
    Views
    2,309

    Accessories.h (entire contents): typedef struct...

    Accessories.h (entire contents):
    typedef struct board
    {
    char cBoard[50];
    struct board *next;

    }BOARD;

    typedef BOARD * pBoard;
  13. Replies
    21
    Views
    2,309

    I was going to try to mask the code, but then I...

    I was going to try to mask the code, but then I thought, why? It's not as if this is some top secret project. It's just a personal project and if someone really wants to steal my idea, not only would...
  14. Replies
    21
    Views
    2,309

    Help with file manipulation.

    I need to read in lines from a simple text file 100,000 at a time in a file that contains millions of lines.

    I tried opening the file, reading 100,000 lines, manipulating the info, saving the...
Results 1 to 14 of 14