登录
首页 » C/C++ » wengxueyanjiuzhushou

wengxueyanjiuzhushou

于 2011-11-13 发布 文件大小:2KB
0 79
下载积分: 1 下载次数: 4

代码说明:

  1、文本串非空且以文件形式存放,统计匹配的词集非空。文件名和词集均由用户从键盘输入; 2、“单词”定义:由字母构成的字符序列,中间不含空格字符且区分大小写; 3、待统计的“单词”在文本串中不跨行出现,它或者从行首开始,或者前置若干空格字符; 4、在计算机终端输出的结果是:单词,出现的次数,出现的位置所在行的行号,同一行出现两次的只输出一个行号; 5、测试数据:将实验的源程序作为测试文件,从中任意选取“单词”作为测试的词集。 ( 1, a text string not empty and with the file form deposit, statistics matching word set not empty. The file name and word set all by users from keyboard input 2, the "words" definition: from letters constitute sequences of characters, and the space character among excluding case-sensitive Three, to the statistics "words" in the text string not an inter-bank appear, it first started from line or, or lead some space character 4, on a computer terminal of the output result is: the words, in the frequency of, appear in the position of the line number did, with a line of output only twice in a line Numbers 5, test data: will the source program as the test files, to freely choose the "words" as a test of the word set. )

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104269会员总数
  • 31今日下载