需要帮助一个程序....任何人请帮助! [英] NEED HELP WITH A PROGRAM....ANYONE PLEASE HELP!
问题描述
问题:
编写一个打开并读取文本文件的程序,并记录文件中每个单词出现的次数
次。使用二进制搜索树修改
来存储单词及其出现次数。在
程序读完文件后,它应该提供一个有三个选项的菜单。
第一个是列出所有单词以及出现次数。 />
第二个是让你输入一个单词,程序报告文件中出现的单词的次数是多少。第三个是退出。
这个问题来自Stephen的书Primer Plus第5版
Prata。第17章问题7.我读了两遍这个章节,无法想象如何编写这个程序。那里有人可以给我这个程序的代码吗?我很绝望。也许我可以支付那些
可以给我代码。
QUESTION:
Write a program that opens and read a text file and records how many
times each word occurs in the file. Use a binary search tree modified
to store both a word and the number of times it occurs. After the
program has read the file, it should offer a menu with three choices.
the first is to list all the words along with the number of occurences.
The second is to let you enter a word, with the program reporting how
many times the word occured in the file. The third is to quit.
This quesiton is from the book C Primer Plus 5th edition by Stephen
Prata. Chapter 17 question 7. I read the chapter twice and can''t figure
out how to write this program. Is there anyone out there who can give
me the code for this program. I am desperate. Maybe I could pay whoever
can give me the code.
推荐答案
< ge ********** @ hotmail.com>写了
<ge**********@hotmail.com> wrote
问题:
编写一个打开并读取文本文件的程序,并记录文件中每个单词出现的次数。使用修改后的二进制搜索树来存储单词及其出现次数。在
程序读完文件后,它应该提供一个有三个选项的菜单。
第一个是列出所有单词以及出现的数量。
第二个是让你输入一个单词,程序会报告文件中出现的单词的次数。第三个是退出。
这个问题来自Stephen
Prata的C Primer Plus第5版。第17章问题7.我读了两遍这个章节,不知道怎么写这个程序。那里有谁可以给我这个程序的代码。我很绝望。也许我可以支付那些
可以给我代码的人。
QUESTION:
Write a program that opens and read a text file and records how many
times each word occurs in the file. Use a binary search tree modified
to store both a word and the number of times it occurs. After the
program has read the file, it should offer a menu with three choices.
the first is to list all the words along with the number of occurences.
The second is to let you enter a word, with the program reporting how
many times the word occured in the file. The third is to quit.
This quesiton is from the book C Primer Plus 5th edition by Stephen
Prata. Chapter 17 question 7. I read the chapter twice and can''t figure
out how to write this program. Is there anyone out there who can give
me the code for this program. I am desperate. Maybe I could pay whoever
can give me the code.
忘记二叉搜索树。
编写程序以便它能够完成他提交文件,挑出单词,并且
将每个单词的计数存储在一个单位列表中。如果它有帮助,设置一个限制
10000个不同的单词。
然后回到你已经完成的工作并从二进制树位开始。
-
购买我的书12普通无神论者论点(驳斥)
Forget about the binary search tree.
Write the program so that it goes throught he file, picks out the words, and
stores the count of each word in a flat list. If it helps, set a limit of
10000 distinct words.
Then come back with what you''ve done and start on the binary tree bit.
--
Buy my book 12 Common Atheist Arguments (refuted)
1.25下载或
7.20论文,可用 www.lulu.com/bgy1mm
7.20 paper, available www.lulu.com/bgy1mm
这篇关于需要帮助一个程序....任何人请帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!