查看單個文章
舊 2006-12-28, 10:53 AM   #1
Chin-Wei 帥哥
長老會員
 
Chin-Wei 的頭像
榮譽勳章
UID - 114112
在線等級: 級別:14 | 在線時長:257小時 | 升級還需:28小時級別:14 | 在線時長:257小時 | 升級還需:28小時級別:14 | 在線時長:257小時 | 升級還需:28小時級別:14 | 在線時長:257小時 | 升級還需:28小時
註冊日期: 2007-02-18
文章: 3448
精華: 0
現金: 1674 金幣
資產: 32804 金幣
預設 二道問題考考大家

老是在回答 FAQ 等級的問題大家應該也會膩吧 ^^a
今天小老弟就出二道題目考考大家~ 一起來歡樂吧(?)

不限任何程式語言,歡迎大家來挑戰,雖然就算解出來了也沒獎品就是了 = =a



第一大題:
請分析下列文章中的各個英文單字出現的頻率,並將出現頻率最高的三個單字輸出至螢幕。
輸出格式為: 頻率<TAB or Space>單字

引用:
WASHINGTON - Gerald R. Ford was a man of limited ambition who, through bizarre circumstances never before experienced by the country, achieved an office that others win through the greatest determination and calculation. The nation's 38th president, Ford wanted only to become speaker of the House. History had another place for him. ADVERTISEMENT Ford was comfortable in the House, representing a Michigan congressional district for 25 years, rising to Republican leader and working toward his dream of one day running the chamber, when President Nixon called.He needed a new vice president; scandal had chased Spiro Agnew from the office.Ford wasn't Nixon's first choice, but the president agreed that the amiable Republican would be the easiest to win confirmation by both houses of Congress. So it went, and Ford became vice president in December 1973.Yet eight months later, the scenario got even stranger.




第二大題:
uucp:x:12:14:Adrian W. Jones/OFFICE_01/TEL_NUM_01
operator:x:13:0:Dorothy Gale/OFFICE_02/TEL_NUM_02
games:x:12:140:John Hancock/OFFICE_03/TEL_NUM_03

請將上述資料紅色的部份,擷取並輸出至暫存檔(eg.tmp.txt),內容為:
Gale, Dorothy   <TAB>OFFICE_02<TAB>TEL_NUM_02
Hancock, John  <TAB>OFFICE_03<TAB>TEL_NUM_03
Jones, Adrian W. <TAB>OFFICE_01<TAB>TEL_NUM_01
(必須依照人名順序排列)



==
解不出來要打屁屁喔~都很簡單的ㄋㄟ~
我當然知道怎麼解不然我哪敢問
__________________
思考,正是從一個錯誤,跳進另外一個錯誤。
Chin-Wei 目前離線  
送花文章: 5387, 收花文章: 1361 篇, 收花: 5457 次
回覆時引用此帖
向 Chin-Wei 送花的會員:
Admin2 (2006-12-28)
感謝您發表一篇好文章