请问如何判断输入的一个字符为汉字
请问如何判断输入的一个字符为汉字?谢谢
2006-10-20 11:07
2006-10-20 11:12
string str = Console.ReadLine();
if (char.isLetter(str))
{
}
else if (char.IsDigit(str))
{
}

2006-10-20 11:14
2006-10-20 12:18
if(ch>='a'&&ch<='z') 小写字母
if(ch>='A'&&ch<='Z') 大写字母
数字也一样。
判断汉字一般是输入 >255 因为汉字是大字符集

2006-10-20 15:43
2006-10-20 18:46
简单?那你弄个来看看
2006-10-20 22:59
2006-10-21 09:19

2006-10-21 09:22
想请问用ASC码怎么写?
另:谢谢mylover624
2006-10-21 10:58