c语言编程题

[复制链接]
查看11 | 回复2 | 2008-11-8 12:47:55 | 显示全部楼层 |阅读模式
Write a program that can read a string and calculates how many words , letters , and lines there are . The program is in 3 parts:
Part 1 : Basic Program
1. Program finds out how many words are in a string
2. Finds out the following:
1. How many words are in the string
2. How many letters are in the string
3. The word with the most letters
4. The word with the lowest number of letters
5. The average number of letters per word
3. Displays a report about everything above
Part 2 : Change the above program:
1. The program reads a string from a file instead
2. The report is written to a file
3. Count how many lines are in the program
4. Calculate the average number of words of words per line there are
5. Calculate the average number of letters per line there are
Part 3 : Change the above program :
1. Build a calculator program :
1. The user selects what they want to do : Read the file , or perform mathematics
2. In the mathematics section , the user selects what operation they want to do
3. They then enter the numbers and the answer is displayed

回复

使用道具 举报

千问 | 2008-11-8 12:47:55 | 显示全部楼层
不要把我们当廉价劳动力嘛!!!...
回复

使用道具 举报

千问 | 2008-11-8 12:47:55 | 显示全部楼层
哇英语看着很累呀大哥弄点国语...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行