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: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: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
+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*)