Nevermind


_____________________
Last edited on
If you don't want it to have input or output, where do you mean to get the words to fill buffer?
...
Last edited on
You should open the file and read the words in from that. I presume you want to put the results into a file as well. Take a look here: http://www.cplusplus.com/reference/iostream/fstream/
...
Last edited on
On my system, ./a.out < file.txt does the job, where a.out is the executable built from the above code.
I typed it into the command line, whilst in the directory containing the executable I built and the file I wanted to wordcount.
Thank You
You're very welcome. Why have you deleted all your posts in this topic?
Deleting your posts after you get a solution is incredibly lame.

Leaving your post on the forum helps others who might have the same question.

I can't tell you how many problems I was able to solve by googling a question and finding an old forum post that has the answer I needed.
closed account (4Gb4jE8b)
+1 to you disch, I too have done that many a time.

Also, when i came across this particular thread, i was very confused at how Moschops was able to answer help's statements.

(*Dang that guy's a mind reader... or an amazing troll*)
(*Dang that guy's a mind reader... or an amazing troll*)


I'm Spoonlicker in drag :p
closed account (4Gb4jE8b)
FFFUUUUUUUUU

:p
Topic archived. No new replies allowed.