看板C_Sharp
标 题Re: [问题] 请问如何将字串放入阵列内
发信站中央资工二进位的世界 (Thu Nov 18 03:25:45 2004)
转信站ptt!ctu-reader!ctu-gate!news.nctu!news.ntu!news.mcu!news.csie.mcu!news
※ 引述《[email protected] (在酱...我滚两圈喔!)》之铭言:
: 请问如何将字串放入阵列内呢?
: 比如说我输入一字串APPLE
: 而我想将这字串方入阵列内如下
: b[0]=A
: b[1]=P
: b[2]=P
: b[3]=L
: b[4]=E
: 请问该怎麽做呢?
不知道是不是你要的?
String.ToCharArray()
http://tinyurl.com/4gy3e
class StrintBuilder
http://tinyurl.com/5jexz
--
〒作者:alex2202 来自:142-206.dorm.ncu.edu.tw
◎二进位的世界【140.115.50.50‧binary.csie.ncu.edu.tw】
1F:推 tomex:若只是要当阵列用,string本身就是char[] 140.119.183.211 11/18
2F:推 liunate:呼呼 大家都很热心呢 ;) 140.118.99.188 11/18