Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Program that ma...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 16 Topic 26174 of 27695
Post > Topic >>

Program that makes a list of words.

by lundslaktare@[EMAIL PROTECTED] May 12, 2008 at 11:32 PM

Maybe this is the wrong group, if so I would like to be pointed
to a better group.
Anyway here's the problem:

I would need a program that makes a list of words of a text-file.

For example take the text:

------------------------------------
To be, or not to be; thats: the ques-
tion.
-----------------------------------------

would return:

be                2
not               1
or                 1
question       1
thats             1
the                1
To                1
to                  1
..                    1
,                    1
:                    1
;                    1
-                    1


As can be seen from this example, I want the program to count both
words and
interpunctation, and I want it to make a difference between "to" and
"To",
I also want it to count:

 ques
-tion

as

question     1
-            1


Any help would be appreciated!
 




 16 Posts in Topic:
Program that makes a list of words.
lundslaktare@[EMAIL PROTE  2008-05-12 23:32:01 
Re: Program that makes a list of words.
Chris McDonald <chris@  2008-05-13 06:43:04 
Re: Program that makes a list of words.
lundslaktare@[EMAIL PROTE  2008-05-13 00:12:08 
Re: Program that makes a list of words.
Chris McDonald <chris@  2008-05-13 07:24:44 
Re: Program that makes a list of words.
Richard Heathfield <rj  2008-05-13 07:38:04 
Re: Program that makes a list of words.
lundslaktare@[EMAIL PROTE  2008-05-13 01:22:26 
Re: Program that makes a list of words.
Richard Heathfield <rj  2008-05-13 08:52:13 
Re: Program that makes a list of words.
viza <tom.viza@[EMAIL   2008-05-13 04:48:53 
Re: Program that makes a list of words.
"Joachim Schmitz&quo  2008-05-13 13:55:22 
Re: Program that makes a list of words.
pete <pfiland@[EMAIL P  2008-05-13 07:59:33 
Re: Program that makes a list of words.
Richard Heathfield <rj  2008-05-13 12:22:16 
Re: Program that makes a list of words.
Keith Thompson <kst-u@  2008-05-13 11:14:39 
Re: Program that makes a list of words.
CBFalconer <cbfalconer  2008-05-13 10:21:13 
Re: Program that makes a list of words.
viza <tom.viza@[EMAIL   2008-05-13 11:30:02 
Re: Program that makes a list of words.
viza <tom.viza@[EMAIL   2008-05-13 11:37:06 
Re: Program that makes a list of words.
CBFalconer <cbfalconer  2008-05-13 16:28:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 11:40:44 CDT 2008.