Search:

Type: Posts; User: CommonTater

Search: Search took 0.04 seconds.

  1. Replies
    24
    Views
    6,698

    Especially not on the program's stack, which is...

    Especially not on the program's stack, which is usually about a megabyte.

    Our friend needs to learn how to A) minimize data structures and B) use malloc() and free().
  2. Replies
    24
    Views
    6,698

    Hopefully you now appreciate the importance of...

    Hopefully you now appreciate the importance of backups...

    And "file opens fine" is NOT a good excuse for writing code with no error checking...
  3. Replies
    24
    Views
    6,698

    Yep... like this... FILE *host_freq;...

    Yep... like this...



    FILE *host_freq;
    host_freq= fopen("hostfreq.txt", "a");

    if (! host_freq)
    { printf("Host Frequency file not opened!")
    exit(1); }
  4. Replies
    24
    Views
    6,698

    Actually with that code, j is initialized to 0...

    Actually with that code, j is initialized to 0 but i is not initialized at all and might contain any random value.
  5. Replies
    24
    Views
    6,698

    Also there's no check to see if the files...

    Also there's no check to see if the files actually opened or not...
Results 1 to 5 of 5