|
Please write a C program to do the following:
- Takes as arguments a file name (for example: input.txt)
- The input file can be potentially very large
- The program opens and reads the file
- The program prints out a distribution of most common words, with most common first, and least common last
- Whitespace between words consists of space, tab, and enter
- Treat punctuation such as ,.:; the same as other characters
Example:
input.txt contains:
you hello love programming hello you hello hello you hello
$ ./a.out input.txt
hello 5
you 3
love 1
programming 1
我写的太差了,没通过,求高人指点。。。。 |
阿莫论坛20周年了!感谢大家的支持与爱护!!
曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……
|