Nevermind

Feb 28, 2011 at 12:18am

_____________________
Last edited on Feb 28, 2011 at 1:18am
Feb 28, 2011 at 12:48am
If you don't want it to have input or output, where do you mean to get the words to fill buffer?
Feb 28, 2011 at 12:51am
...
Last edited on Feb 28, 2011 at 1:20am
Feb 28, 2011 at 12:53am
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/
Feb 28, 2011 at 12:58am
...
Last edited on Feb 28, 2011 at 1:18am
Feb 28, 2011 at 1:08am
On my system, ./a.out < file.txt does the job, where a.out is the executable built from the above code.
Feb 28, 2011 at 1:18am
I typed it into the command line, whilst in the directory containing the executable I built and the file I wanted to wordcount.
Feb 28, 2011 at 1:19am
Thank You
Feb 28, 2011 at 1:34am
You're very welcome. Why have you deleted all your posts in this topic?
Feb 28, 2011 at 2:28am
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.
Feb 28, 2011 at 6:29am
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*)
Feb 28, 2011 at 10:35am
(*Dang that guy's a mind reader... or an amazing troll*)


I'm Spoonlicker in drag :p
Mar 1, 2011 at 5:40am
closed account (4Gb4jE8b)
FFFUUUUUUUUU

:p
Topic archived. No new replies allowed.