strNumbers[i] - '0'是什么意思
程序代码:#include <stdio.h>
int toInt(char *strNumbers)
{
int i,s = 0;
for(i = 0; strNumbers[i] != '\0'; i++)
{
s = s*10+(strNumbers[i] - '0');//这句代码是什么意思??
}
return s;
}
int main()
{
char s[50];
while(gets(s)!=NULL)
{
printf("%d\n",toInt(s));
}
return 0;
}








