Emmanuel Delahaye wrote:
> Vimal Aravindashan wrote on 26/09/05 :
>
>> It would be best if you used the hash_map container provided in the
>> STL package. Read the STL documentation for more help on hash_map.
>> Also, STL is C++, so if you do decide to take my advice into
>> consideration, please make it a point post any further questions to
>> c.l.c++
>
>
> How is any of this a response to a C-question ?
>
Read the OP's message again:
Foodbank wrote:
> Hello,
>
> I'm trying to develop a program that will enable me to count the number
> of words in a text file. As a plus, I'd like to be able to count how
> many different words there are too. I have a decent start on the
> program, but am quite unsure of where to move from here. I need to
In the problem statement the OP does not say that it has to be done in C
(Although, he has mentioned it his reply). The fact that he already has
a good start doesn't matter much if he is going to be stuck with
re-inventing the wheel. If it was up to me, then I would first get the
design right, and then figure out which language is best (unless there
is a constraint on the same, as in this case) to translate my design
into code. Moreover, the OP does say "any help" is welcome, so a
re-direction should really hurt much if it is going to save him quite
some time.
Cheers,
Vimal.
--
If you would be a real seeker after truth, it is necessary that at least
once in your life you doubt, as far as possible, all things."
-- Rene Descartes