文件名称:kkk
介绍说明--下载内容均来自于网络,请自行研究使用
给定K个单词作为文本的开始。程序每次生成一个单词,其过程为:读取文本中最后的K个单词,并在书中寻找这K个单词连续出现的所有位置,然后从中随机挑选一个位置,并把该位置之后的一个单词加入到文本中。该过程不断重复,直到生成的文本达到最大单词数,或者生成的单词恰好是这本书的最后一个单词。-Given K words as the beginning of the text. Each program generates a word, the process is: read the text in a word the last K, and K in the book to find a word that all the consecutive positions, and then were randomly selected from a location, and the one after that location words to text. The process repeats until the generated text to the maximum number of words, or words generated is exactly the last word in this book.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
kkk.cpp