??请教怎样判断字符串中(即口令)不含有0-9,a-z,A-Z,及"_"以外的字符??

??请教怎样判断字符串中(即口令)不含有0-9,a-z,A-Z,及"_"以外的字符??
[43 byte] By [free_worf] at [2007-12-10]
# 1
判断ASCII码值就可以区分亚
# 2
依次对每个字符的ASCII码进行判断,
不是其上之一则...
SecretGarden-天堂鸟 at 2007-10-26 > top of Msdn China Tech,VC/MFC,非技术类...
# 3
isdigit() isalpha()
whiskers-胡子 at 2007-10-26 > top of Msdn China Tech,VC/MFC,非技术类...
# 4
int len = str.GetLength();//str为你的口令
for(int i=0;i<len;i++)
{
char temp;
temp = str.GetAt(i);
int ma = temp&(0xFF);//这就是该字符的ascii码
//判断期ascii码属于你要的标准即可
}

heilong at 2007-10-26 > top of Msdn China Tech,VC/MFC,非技术类...