_____________________
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
...
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.
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.
+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*)