摘要: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
posted @ 2014-09-10 22:33
Copyright Copyright 2025 FanQH
Powered by .NET 9.0 on Kubernetes