![]() |
怎麼寫~可計算[字元長度]&[出現機率]的程式??
麻煩請用C寫喔~~~:on_65:
就是 輸入一段英文句子~~ 可以計算 總共有幾個字 & 每個字占整個句子的%~~ 例如: 輸入 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/ 麻煩各位高手了:on_65: |
所有時間均為台北時間。現在的時間是 02:59 AM。 |
Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2025, Jelsoft Enterprises Ltd.
『服務條款』
* 有問題不知道該怎麼解決嗎?請聯絡本站的系統管理員 *