搜索字符串-C#教程实用版 ppt

时间:2021-04-23 19:47:01
【文件属性】:
文件名称:搜索字符串-C#教程实用版 ppt
文件大小:4.81MB
文件格式:PPT
更新时间:2021-04-23 19:47:01
C#教程实用版 ppt 搜索字符串 [n] string poem = “Kubla Khan”; poem[0]; IndexOf, LastIndexOf(string, [int start], [int count]) int n=poem.IndexOf(“la”); n=poem.IndexOf(‘K’,4); IndexOfAny, LastIndexOf char[] chs = {‘a’, ‘e’, ‘i’, ‘o’, ‘u’}; N=poem.IndexOfAny(chs); N=poem.LastIndexOfAny(chs,2); 如果没找到,返回-1

网友评论