编程天才进!!(有提示)谁会把一篇文章(英语)的不重复单词弄出来

来源:百度知道 编辑:UC知道 时间:2024/05/27 23:35:57
http://zhidao.baidu.com/question/31282903.html
不重复非中文单词数(英文单词)统计

我要把这些不重复单词都列出来.(顺序无所谓)
看情况,我可能会加分,但来的人多到3个以上

asp代码如下:
避免了标点和字母混在一起造成的五判断。
最后结果输出总词数。

<%
ls_text="This week, Irvine, Calif.-based Iogear announced plans for a digital pen that can work with standard paper. Last month, educational computer maker LeapFrog introduced the FlyFusion, its second go at the digital pen. And later this year, Silicon Valley start-up LiveScribe plans to introduce a $200 device that can not only take digital notes, but also synchronize them with an audio recording."
ls_text=replace(ls_text,", "," ") '尽量避免简称里的标点被误判断,如:co.,ltd等
ls_text=replace(ls_text,". "," ") '尽量避免简称里的标点被误判断,如:co.,ltd等
response.Write("文章:"+ls_text+"<br>")
la_words=split(ls_text," ")
ll_last=ubound(la_words)'ll_last是数组的下界,数量应该为ll_last+1
response.Write("词数:"+cstr(ll_last+1)+"<br>")
for k=0 to ll_last
'response.Write(cstr(la_words(k))+"<br&g