in C++...
int counter = 1;
while (!file.eof)
{
file >> variable;
counter++;
}
cout << counter;
Kapil <[EMAIL PROTECTED]> wrote:
N Khemker wrote:
> Hello Guys,
> Can anyone tell me HOW TO FIND OUT THE NUMBER OF
> WORDS IN SIMPLE TEXT FILE USING C COMMAND LINE PROGRAMME.
> We have to consider all aspects and check all
> coditions for words in text file.
>
> Regards,
> Neel.
>
>
Neel,
1. You could have pressed New Mail button instead of a reply, that would
have saved me from a thousand lines of irrelevant text.
2. You could have made concious efforts to explain :
what efforts have you made to solve your problem like any algo or
something you have thought of how to proceed.
If you dont want to solve problem yourself, and want us to do the same,
what fee are you ready to pay.
Kapil
--
PS:
1. Google: Feel free to Google before posting. http://www.google.com
2. Posting: I suggest the group members to avoid top posting, as this
pushes the original question to the bottom. While any body would prefer
to have the main question at the top, and subsequent replies added to
the bottom, so that it is easy to comprehend the flow of information. So
please stick to bottom posting.
To unsubscribe : [EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.ya
hoo.com
To unsubscribe : [EMAIL PROTECTED]
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4560
Please do not reply to this message via email. (more info)
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
