截取字符串的问题
我现在有一个字符串ip(比如124.168.0.2),我想把它按 ". "拆分后写入数组a中
代码怎么写
[解决办法]
string[] a = ip.split( '. ');
发布时间: 2012-03-07 09:13:51 作者: rapoo
截取字符串的问题
我现在有一个字符串ip(比如124.168.0.2),我想把它按 ". "拆分后写入数组a中
代码怎么写
[解决办法]
string[] a = ip.split( '. ');