isalpha函数使用
来源:互联网 发布:小学生网络字典 编辑:程序博客网 时间:2024/06/12 21:40
原型:extern int isalpha(int c);
用法:#include <ctype.h>
功能:判断字符c是否为英文字母
说明:当c为英文字母a-z或A-Z时,返回非零值,否则返回零。
举例:
// isalpha.c
#include <syslib.h>
#include <ctype.h>
#include <stdio.h>
main()
{
int c;
clrscr(); // clear screen
printf("Press a key");
for(;;)
{
c=getchar();
clrscr();
printf("%c: %s letter",c,isalpha(c)?"is":"not");
}
return 0;// just to avoid warnings by compiler
}
相关函数:isalnum,isdigit,isxdigit,iscntrl,isgraph,isprint,ispunct,isspace
- isalpha函数使用
- isalpha () 函数
- isalpha函数
- isalpha函数
- isalpha函数
- isalpha判断字母函数的使用
- isdigit函数,isalpha函数
- isalpha()函数
- 函数tolower().isalpha()
- 关于isalpha的使用
- isalpha
- isalpha
- isalpha
- isalpha
- isalpha
- isalpha
- ctype库中函数isalpha
- isalpha函数你会么
- 多尝试有用的工作
- ARIMA建模原则及EViews中的correlogram ,ADF检验
- 第二篇文章
- SDL_blit_A_c
- 大家好
- isalpha函数使用
- htons函数具体解释
- start with...connect by prior用法 【转】
- 用javascript即时统计输入框的字数
- 2008年上半年系统分析师上午英语试题分析与参考答案
- Ubuntu简单网络配置
- org.apache.jasper.JasperException: Unable to compile class for JSP: List cannot be resolved to a type 错误
- sql字符串连接函数
- linux patch使用笔记