会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
厚道 善良 守信 宽容 诚实 谦虚 正直 执着
首页
联系
管理
提取汉字
if
(textBox1.Text.Trim()
!=
""
)
{
int
i
=
0
;
string
strIn
=
textBox1.Text;
string
temp;
byte
[] array
=
new
byte
[
2
];
textBox2.Text
=
""
;
for
(i
=
0
;i
<
strIn.Length;i
++
)
{
temp
=
strIn.Substring(i,
1
);
array
=
Encoding.Default.GetBytes(temp);
if
(array.Length
!=
1
)
{
textBox2.Text
+=
temp;
}
}
}
来自:http://community.csdn.net/Expert/topic/4120/4120603.xml?temp=.2487146
运行通过
posted @
2005-07-05 15:13
jhtchina
阅读(
905
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
公告