C#中如何调用index函数?
C#中如何调用index函数?举例说明!!!
2011-10-11 14:29
2011-10-11 16:30
2011-10-11 17:02
string s1 = "abcdefgabcdefg";
string s2 = "cde";
int i1 = s1.IndexOf(s2);
int i2 = s1.LastIndexOf(s2);
2011-10-11 17:17