Search:

Type: Posts; User: taemex

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    3,330

    Lol, I know, that's how I originally had it, but...

    Lol, I know, that's how I originally had it, but I wasn't sure if fgetc would reiterate correctly if it was in the while clause so I took it out and once the program worked as I wanted, I just left...
  2. Replies
    12
    Views
    3,330

    Okay, I figured it out completely if anyone is...

    Okay, I figured it out completely if anyone is interested. I can't seem to edit old post after awhile it seems:

    /*
    ============================================================================
    ...
  3. Replies
    12
    Views
    3,330

    Incredible, that was it! Thank you so much...

    Incredible, that was it! Thank you so much WoodSTokk! Now all I have to figure out is how to get fgets to not stop after the first \n line, but to continue reading to eof and output the value of each...
  4. Replies
    12
    Views
    3,330

    Satya, thank you for your reply, Changing %1d...

    Satya, thank you for your reply,

    Changing %1d to %1c:



    Changing stringCH to type char:


    Identical errors if only one changed or both.
  5. Replies
    12
    Views
    3,330

    Okay, so I figured out that I was using an array...

    Okay, so I figured out that I was using an array and that's not what I want. So I changed my code based on some examples I found in my workbook and on StackOverflow, but it still does not work!?!...
  6. Replies
    12
    Views
    3,330

    Each line has some random sentence I wrote in,...

    Each line has some random sentence I wrote in, and pasted several times. When fgets runs, it indeed takes the second latter, "a" in this case, and counts all of the 'a's on one line and outputs how...
  7. Replies
    12
    Views
    3,330

    Oh, I didn't realize that about arrays. According...

    Oh, I didn't realize that about arrays. According to my teacher, putting BUFSIZ in the buffer size makes the character size maximum, and from the code we've compiled in her class, it seems to work. I...
  8. Replies
    12
    Views
    3,330

    Confused on fgets with switch

    Hi,

    I'm currently taking a class at my local college and the assignment is for me to retrieve data from a text file and count the number of 'a's, 'c's, 'g's, and 't's in the text file. When I run...
Results 1 to 8 of 8