本文共 750 字,大约阅读时间需要 2 分钟。
void main()
{
if((ch>=’A’&&ch<=’Z’)||(ch>=’a’&&ch<=’z’))
printf(“nYou have entered an alphabet”);
else
if(ch>=’0’&&ch<=’9′)
printf(“nYou have entered a digit”);
else
printf(“nYou have entered a special character”);
getch(); //to stop the screen
}
void main()
{
if((ch>=’A’&&ch<=’Z’)||(ch>=’a’&&ch<=’z’))
printf(“nYou have entered an alphabet”);
else
if(ch>=’0’&&ch<=’9′)
printf(“nYou have entered a digit”);
else
printf(“nYou have entered a special character”);
getch(); //to stop the screen
}
翻译自:
转载地址:http://trwwd.baihongyu.com/