输入格式:要统计的字符 空格 字符串s#includeint main(){char s[1000],c;scanf("%c",&c);scanf("%s",&s);int i=0,j=0;while(s[i]!=NULL){if(s[i]==c){++j;}++i;}printf("%d",j);return 0;}