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...
Type: Posts; User: flipguy_ph
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...
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...
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
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...
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...
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...
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...
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...
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...