string直接分成char数组

string直接分成char数组, 然后逐个输出来~

创新互联公司一直秉承“诚信做人,踏实做事”的原则,不欺瞒客户,是我们最起码的底线! 以服务为基础,以质量求生存,以技术求发展,成交一个客户多一个朋友!为您提供网站制作、成都网站制作、成都网页设计、成都微信小程序、成都网站开发、成都网站制作、成都软件开发、重庆APP软件开发是成都本地专业的网站建设和网站设计公司,等你一起来见证!

  1. using System; 
  2. using System.Collections.Generic; 
  3. using System.Linq; 
  4. using System.Text; 
  5.  
  6. namespace ConsoleApplication1 
  7.     class Program 
  8.     { 
  9.         static void Main(string[] args) 
  10.         { 
  11.             string s = Console.ReadLine(); 
  12.             Console.WriteLine("字符 ---------- 十进制"); 
  13.             for (int i = 0; i < s.Length; i++) 
  14.             { 
  15.                 char c = s[i]; 
  16.                 Console.WriteLine("  {0}  ----------   {1} ",c,(int)c); 
  17.             } 
  18.         } 
  19.     } 

string直接分成char数组

 


网站栏目:string直接分成char数组
文章路径:http://pwwzsj.com/article/jjoeid.html