C#字符串(Sring)操作
摘要:
//字符串访问 //string s = "ABCD"; //Console.WriteLine(s[0]);//第0位字符 //Console.WriteLine(s.Length);//字符串长度 //----------------------------------------------------------- //打散 //string s = "ABCD"; //char[] arr = s.ToCharArray();//将字符串打散,并放入字符数组中. //Console.WriteLine(arr[0]);//arr[0]=' 阅读全文
posted @ 2013-06-21 13:04 IThinktan 阅读(791) 评论(0) 推荐(0) 编辑