为什么这个运行不出呢???????????
#include<stdio.h>#include<string.h>
int countchars(char *s1, char ch);
int countchars(char *s1, char ch)
{
int i,s=0;
for(i=0;s1[i]!='\0';i++){
while(ch>='a'||ch<='Z'){
if(ch=s1[i])
s=s+1; }}
return s;
}
main()
{
char *s1,ch;
printf("Input :",*s1);
printf("Please input :",ch);
scanf("%c",&ch);
printf("%d",countchars( s1,ch));
}