A
agent mike
I am trying to count words in a text file. I am using the following code:
in_stream.get(c);
if(c == ' ' || c == '.' || c == ',')
word_count++;
and the word count is too low. If I include " .... || c == '\n'
the word count is too high as it counts returns of blank lines
as a word.
I am at my wits end. I'm in a beginning c++ class and this assignment
is nearly due.
HELP
me
over 'n' out
agent mike
in_stream.get(c);
if(c == ' ' || c == '.' || c == ',')
word_count++;
and the word count is too low. If I include " .... || c == '\n'
the word count is too high as it counts returns of blank lines
as a word.
I am at my wits end. I'm in a beginning c++ class and this assignment
is nearly due.
HELP
me
over 'n' out
agent mike