[問題] 字串取代
遇到的問題: (題意請描述清楚)
我要做不規則動詞的還原,所以找了一些字串取代的資料
在網路上有找到相關的code
並已稍微修改成我要的結果,但是現在遇到似乎是字元的取代 而非字串
請問該如何解決呢?
希望得到的正確結果:
假設原字串為: abode abided was am is iris arose
希望是以字串取代的方式
正確輸出應為: abide abide be be be iris arise
程式跑出來的錯誤結果:
abide abide be be be irbe arise
開發平台: (例: VC++ or gcc/g++ or Dev-C++, Windows or Linux)
Dev-C++
有問題的code: (請善用置底文標色功能)
raw code : http://codepad.org/8TIVzTLc
謝謝大家~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.117.75.38
→
05/08 21:10, , 1F
05/08 21:10, 1F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章