Home > Back-end >  The processing of English text file (small white for help)
The processing of English text file (small white for help)

Time:03-14

The topic request:
1. Read in an English text files, in the English letters, Numbers and other characters, Chinese characters, there are more lines in the file,
2. Write a function to realize: the frequency of statistics letters, and according to the results,
3. Write a function to realize: the statistics of the number of words, and according to the results, (number of words in WORD statistics as a reference, not necessarily the same 100%,)
4. Write a function to achieve: find the longest word, and display the word and its length,
5. Write a function to achieve: statistics of integers, in one dimensional array, and according to the results,
(1) there are two lines such as file:
"ABC 123 W 6 WWW 9."
"The teacher student 10 7."
Get the number 5 (2) analysis: 123,6,9,10,7,
(3) define an array of int a [1000]
(4) a [0]=123, a [1]=6, a [2]=9, a [3]=10, a [4]=7,
Note: you can use subscript or string for processing character pointer,



5, put all the content read a one-dimensional or two-dimensional array in the array,
6, pass the array to a function, parameter is an array)
  • Related