麻煩請用C寫喔~~~
就是 輸入一段英文句子~~
可以計算 總共有幾個字 & 每個字占整個句子的%~~
例如:
輸入
To be, or not to be: that is the question:
-
Word Length-------
Frequency-
------2 ----------------0.6 ----
------3 ----------------0.2 ----
------4 ----------------0.1 ----
------8 ----------------0.1 ----
----
Word-----------
Frequency-
------to--------------- 0.2-----
------be--------------- 0.2-----
------or--------------- 0.1-----
-----not ---------------0.1 ----
-----that --------------0.1 ----
------is ----------------0.1 ---
-----the--------------- 0.1 ---
---question------------ 0.1----
完整的題目如下
http://gwerg.6cc.tw/
麻煩各位高手了
