运动会英语怎么写作文:编程删除字符串中的数字字符
来源:百度文库 编辑:查人人中国名人网 时间:2024/05/08 20:07:26
#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可以判断一个字符是否数字。