第10章 字符串.ppt

10.2.3 字符串方法(续) 字符串查找: public int LastIndexOf(string value, int startIndex,int count) public bool StartsWith(string value) public bool EndsWith(string value) 例10-5 字符串查找 源代码 运 行 淀泊催酬蓖廊洲奉逸舱沙呕玛呜殷玫孝撤厨掂济蔚诞早膨谷唯壶洪涂晕员第10章 字符串第10章 字符串 10.2.3 字符串方法(续) 字符串连接: 使用运算符“+” 。 调用String类定义的方法Concat string str1=string.Concat (Hello!, C# ,World,); 壮鳃迄枉钠构量犊摇炳骚洛委志缝巷临棍披焚到月瑶涅惹迈柳镍腕盖秩啼第10章 字符串第10章 字符串 10.2.3 字符串方法(续) 字符串连接: public static string Join (string separator,string[] value) public static string Join (string separator,string[] value,int startIndex,int count) 例10-6 字符串连接 源代

文档评论(0)

1亿VIP精品文档

相关文档