摘要: 需求:有两个字符串s1,s2,s1="abaad" ,s2="a"输出s2在s1中出现的次数,写法如下 public static void Main() { Console.Write( RL("abaad","a")); Console.ReadKey(); } static int RL(string s1,string s2) { int sum=0; //加一些特殊字符的判定 ... 阅读全文
posted @ 2010-09-02 13:32 艾伦 阅读(636) 评论(0) 推荐(0) 编辑