string直接分成char数组
string直接分成char数组, 然后逐个输出来~
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceConsoleApplication1{classProgram{staticvoidMain(string[]args){strings=Console.ReadLine();Console.WriteLine("字符----------十进制");for(inti=0;i<s.Length;i++){charc=s[i];Console.WriteLine("{0}----------{1}",c,(int)c);}}}}
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。