5chapter 5 字符和字符串.pptVIP

  • 1
  • 0
  • 约2.97千字
  • 约 16页
  • 2017-08-05 发布于河南
  • 举报
第五章;;5.1 字符类Char ; ; 例: using System; class StrDemo { static void Main( ) { Console.WriteLine(“FirstLine\nSecondLine”); Console.WriteLine(“A\tB\tC”); Console.WriteLine(“D\tE\tF”); } } ;5.2 字符串类String ;static void Main(string[] args) { string s1 = yesterday, once, more.; char[] sepa ={ ‘,’, ‘,’, ‘.’ }; //分割字符的数组 //字符串数组,用于存放分割后的多个字符串; string[] ssstring = new string[100]; ssstri

文档评论(0)

1亿VIP精品文档

相关文档