输入一个长度小于80的字符串,修改此字符串,将字符串中的字母字符滤掉掉,并统计新生成串中包含的字符个数。
#include <stdio.h>
int main(void)
{
char str[100];
int s;
printf("input a string:");
gets(str);
printf("The original string is :");
puts(str);
s = fun(str);
printf("The new string is :");
puts(str);
printf("There are %d char in the new string.\n",s);
return 0;
}
这是主函数,我改如何设计这个fun函数来达到我的期望