2014年9月10日

摘要: string类提供了判断字符串B在字符串A中首次(或最后)出现的Index的方法,但有时候需要判断B在A中出现了多少次。为此想了一个算法。1 public static void CountIndexOf1(string A, string B,int startindex,ref int co... 阅读全文

posted @ 2014-09-10 22:33 FanQH 阅读(803) 评论(0) 推荐(0) 编辑