#include<stdio.h>
int input()
{
printf("请输入一行字符:\n");
char m=getchar();
return m;
}
void fun(char c)
{ int space=0,letter=0,digit=0,other=0;
while(c!='\n')
{
if(c>='a'&&c<='z'||c>='A'&&c<='Z')
letter++;
else if(c>='0'&&c<='9')
digit++;
else if(c==' ')
space++;
else
other++;
}
printf("字母数:%d\n数字数:%d\n空格数:%d\n其他字符数:%d\n",letter,digit,space,other);
}
void main()
{
char d;
d=input();
fun(d);
}
请帮忙大佬们帮忙看一下这样一个函数如何调用两个功能函数,期末考要求调用两个功能函数,但是前一个输入函数不知道怎么使用