Search:

Type: Posts; User: durrty

Search: Search took 0.01 seconds.

  1. Okay- so the error went away and I get the line...

    Okay- so the error went away and I get the line numbers to print. Must have been bad code in
    there somewhere, but don't ask me where. Unfortunately the output is duplicated instead of ...
  2. I'm trying to insert line numbers for ever line...

    I'm trying to insert line numbers for ever line copied from the original document into every line in the new document, with the exception of the heading...
  3. Happens on the laptop too!!! Hmmm......

    Happens on the laptop too!!! Hmmm......
  4. The popup "windows encountered an error and must...

    The popup "windows encountered an error and must close the program..." It happens after I compile and run the code...
  5. Thanks Elysia...and for the record I did change...

    Thanks Elysia...and for the record I did change that 0 to NULL when you suggested it earlier...The code compiles fine but when I execute I get a windows error? Any ideas? I'm going to try on...
  6. Thanks for the help and tips. So when using...

    Thanks for the help and tips. So when using fseek() do I need to tell the program anything additional, or will this work (and should I look for the beginning of the original file or 'newfile'?

    ...
  7. okay so I eliminated the extra fgets(). Should I...

    okay so I eliminated the extra fgets(). Should I try fseek() or something to correct the EOF problem?
  8. I dunno even know why I have NAME_LEN, it was...

    I dunno even know why I have NAME_LEN, it was part of the code that I copied...oops...
  9. Okay..here goes...lemme explain my thoughts first...

    Okay..here goes...lemme explain my thoughts first (please feel free to correct me, just not too harsh, a'ight :-). I know I need an output, the length (or an int) and ptr to the source. so the...
  10. I'm really just venting...this site has been a...

    I'm really just venting...this site has been a tremendous help from the jump, so thanks, I'll continue to search and eventually find the answer...
  11. I still don't know what I'm doing. I can't...

    I still don't know what I'm doing. I can't construct a proper fgets() (if that's what I'm supposed to use to find each line) to get the lines one by one, then I have to insert line numbers. I'm not...
  12. Oh...well. It was quick to me, I wasn't expecting...

    Oh...well. It was quick to me, I wasn't expecting any response as I thought it was probably considered a dumb question.

    Thanks for the tips...
  13. Zacs7 and Elysia- Thank you for the quick reply....

    Zacs7 and Elysia-
    Thank you for the quick reply. Like I said, I'm new to programming period, and every little bit helps.

    Durrty
  14. so like this? int main ( int argc, char...

    so like this?


    int main ( int argc, char *argv[])
    {
    char ch;
    char *w;
    char *x;
  15. adding line numbers and concatenating a filename

    Hi-
    I'm brand new to the forum and C. I hope this hasn't already been answered. I searched and couldn't find anything, but I'm probably not looking properly. Anyway, I have an assignment in which...
Results 1 to 15 of 15