Let's say I have a text.
I need to know what symbol of that text is the most common (appears most often).
I'm rather new to pascal, so don't know that.
I understand it's done through array probably.
Thanks for your help :)
Hey guys, thanks for fast and useful answer :)
Worked perfectly. In case anyone would need it again :
print "Content-type: text/html\n\n";
$text = "Hello Bruce! It's so nice to meet you, pal, how've you been? I'm fine, and how are you?";
@words = split (/\s/,$text)...
Hi, I'd like to write a program, which can search the number of repeated words in text.
For example, to check how many times was every word repeated in text; or to check which words were repeated more than 5 times.
I heard there is some function 'grep', but I'm not sure how does it work...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.