删除字符串中的数字

void del_num(char *s) 
{  
    char *tmp=s;
    while(*tmp)
     {  
        if ( *tmp>= '0' && *tmp <= '9')) 
        {  
            *s++=*tmp;
        } 
    }   
    *s ='\0';  
}  

猜你喜欢

转载自blog.csdn.net/wehung/article/details/79837902
今日推荐