1、
#include <stdio.h> void del(char *s1) { char *tmp = s1; while(*tmp) { if(*tmp < '0' || *tmp > '9') *s1++ = *tmp++; else tmp++; } *s1 = '