Search:

Type: Posts; User: unsolicited

Search: Search took 0.01 seconds.

  1. AAAAAAAAAAAAAAAGH AAAAAAAAAAAUUUUUUUGH...

    AAAAAAAAAAAAAAAGH AAAAAAAAAAAUUUUUUUGH GAAAAAAAAH!

    IT WORKED! IT WORKED! AAAAAAAAAAAAH IT WORKS!

    Thank you, c99tutorial.
    That explanation was awesome.

    I tried using that simple "for"...
  2. Right, i get that "while" and "for" are similar,...

    Right, i get that "while" and "for" are similar, but i wanted to use "while" because I don't see how to tell the "for" loop where the end of my file is. The "for" loop's loop control can only start,...
  3. Shoot! Thank you for your help But this is way...

    Shoot!
    Thank you for your help But this is way over my head.

    Like... what is innit_cardz doing?
    It's copying "nothing(?)" to the struct? Is that... what's that for?

    Also i can't figure out...
  4. I've set my line to [255]. My longest line in my...

    I've set my line to [255].
    My longest line in my file is 23 characters.



    Yes.
    From my file:
    The longest string in "value" is 14 (so in my struct i've set char value[15])
    The longest string...
  5. Thank you. I had considered that... But the...

    Thank you. I had considered that...
    But the following loop is one of my many attempts at code fiddling that gives me a segmentation fault - and I can't figure out why.



    while (fgets...
  6. While loop skipping first fgets - also reading text file into struct

    Hello.
    I'm new to this board, also new to programming. This is the tail end of my first semester with C, and it hasn't gone so well. I've been lurking here from time to time desperately looking...
Results 1 to 6 of 6