Search:

Type: Posts; User: flipguy_ph

Search: Search took 0.01 seconds.

  1. ok. Im still on it. adding count apparently...

    ok. Im still on it.

    adding count apparently didn't work. no matter where I put it. I get a consecutive number for each word: three 1 happy 2 dogs 3 ect...

    I've done fgets instead of getc. that...
  2. if getc() gets data character by character, could...

    if getc() gets data character by character, could I jsut put a count after it and fprintf the count?




    while ( isalpha( iochar = getc( infile )))
    putc( iochar, outfile...
  3. dat was cool. I forgot to mention though that...

    dat was cool.

    I forgot to mention though that punctuation shouldn't be counted, as well as white spaces.

    if the data file was :

    Three "happy" dogs eat

    the quotes would be counted
  4. Counting the characters from each word from a text file

    Im trying to read off an input text file that reads ie. "Three happy dogs eat." My goal is to count the total characters and print ONLY that to the screen AND create an output txt file to read like...
  5. Replies
    10
    Views
    12,551

    you've been a great help MK27. thanks! i...

    you've been a great help MK27.

    thanks!

    i knew what you meant about "just there" not meaning "just" there. It's been a long day for a simple task. A lot of it has to do with me being at home...
  6. Replies
    10
    Views
    12,551

    great! this is where i was when i began. I...

    great!

    this is where i was when i began. I tried to do just that but kept getting errors. I restored the original code for the day and implemented your suggestion of where to apply the...
  7. Replies
    10
    Views
    12,551

    well... looks like nothing. it's been a long day....

    well... looks like nothing. it's been a long day.

    i was trying to implement what MK27 mentioned:


    apparently.... i didn't do it right.
    my orginal idea which worked great for a single struct...
  8. Replies
    10
    Views
    12,551

    awesome... thought so but wasn't sure where and...

    awesome... thought so but wasn't sure where and how.

    I like the additional loop idea, i'll try that for my next programs.

    So i tried out the subscripts ... it feels good, but i think my loop...
  9. Replies
    10
    Views
    12,551

    populate an array struct

    i can populate a single struct and display it with no problem. But for some reason, when arrays get involved, I get so lost.

    i want to get data for a maximum of [30] of my students and store them...
Results 1 to 9 of 9