使用string对象的indexOf()方法来定位字符串中某个指定字符首次出现的位置。怎么编程

如题所述

int location = "abcdefg".IndexOf("d");
C#,执行后location的值是4
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-11-18
圣达菲
第2个回答  2012-11-16
什么语言啊
相似回答