写一个函数,统计字符串里小写字母的个数c语言
写一个函数,统计字符串里小写字母的个数c语言
日期:2016-04-29 23:24:43 人气:1
例题1 :#include
#include
#define LENGTH 128
void main()
{
int i = 0;
int count = 0;
char str[LENGTH] = {0};
printf("Please input the string:");
str = gets();
while(str[i] != '\0')
{
if(islower(str[i]))
{
cou