帮忙翻译,快,专业人士进,不要机翻

来源:百度知道 编辑:UC知道 时间:2024/06/04 10:02:10
有关c语言的
Text Processing

Write a program that reads a text file that contains some texts. The program should count the number of lines, number of words, number of characters (no spaces), number of characters with spaces and the number of paragraphs. This program should be similar to the word count function in Microsoft Word. These results should be written to another file.

A sample run of the program should look like this:
Please enter the file name: words.txt
Processing….
The results can be found at words.rpt

If the file “words.txt” contains:

In artificial intelligence ,an embodied agent is an intelligent agent , that interacts with the environment through a physical body within that environment. Agents that are represented graphically with a body, for example a human or a cartoon animal, are also called embodied agents, although they have only virtual, not physical, embodiment. A branch of artificial intelligence focuse

Text Processing 数据处理

写一个程序读一个文本文件 此程序必须统计行数,单词数,字符数(含空格),字符数(不含空格),段落数。程序须类似于微软的WORD中字数统计功能。结果须写入另外一个文件中。
一个例如下。
Please enter the file name: words.txt
Processing….
The results can be found at words.rpt

剩下的那个words.txt 中包含的东西没用 只是一篇文章。
words.rpt 就是统计上文中的单词数,字符数,字符数含空格,段落数,行数。