#include <stdio.h>
#include <stdlib.h>
#define N 100
void func3()
{
char str[N];
int i,lower=0,upper=0,digit=0,space=0;
long others=0;
printf("Input a string:");
gets(str);
for(i=0;str[i]!='\0';i++)
通过程序统计字符串的大写字母个数、小写字母个数、数字个数和其它字符个数。用函数func实现功能
最新推荐文章于 2024-04-21 13:49:57 发布