void print(char *s)
{
int i=0;
for(;*s!='\0';s++,i++)
if (i%2==0)
printf("%c",*s);
}
int length(char *s)
{
int i=0;
for(;*s!='\0';s++)
i++;
return i;
}
int gschard(char *s)
{
int i=0;
for(;*s!='\0';s++)
if (*s=='d') //'d' 错误写成d
i++;
return i;
}
int gschar(char *s,char ch)
{
int i=0;
for(;*s!='\0';s++)
if (*s==ch)
i++;
return i;
}
上一页
[1]
[2]
[3]
[4]
[5]