昂达v116w core m发热:编程删除字符串中的数字字符
来源:百度文库 编辑:高校问答 时间:2024/07/08 09:06:53
#include<stdio.h>
void main()
{
char *a,*s;
gets(a);
while(a)
{
if(!((*a>='0')&&(*a<='9')))
*(s++)=*a;
a++;
}
*s='\0';
puts(s);
}
c语言?<ctype.h>头文件中,isdigit可以判断一个字符是否数字。