问题描述
char c[50];
scanf("%s",c);
int counter;
for(int i=0;i<strlen(c);i++){
for(int j=0;j<=9;j++){
if(j==c[i]) // this line not comparing
counter+=1;
}
将整数(j)与数组c中的数字进行比较,而在调试时不进行比较
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)