int main(void)
{
inti =0, n=0;

charstr[]="12345";
while(str[i]!='\0')
{
n=n*10+(str[i]-'0');
i++;
}

printf("数值:%d\n", n);

return0;
}