int main(void)标签:24,10,int,void,return0,str,字符串,基本功 From: https://blog.51cto.com/u_15983838/6092939
{
inti =0, n=0;
charstr[]="12345";
while(str[i]!='\0')
{
n=n*10+(str[i]-'0');
i++;
}
printf("数值:%d\n", n);
return0;
}
int main(void)标签:24,10,int,void,return0,str,字符串,基本功 From: https://blog.51cto.com/u_15983838/6092939
{
inti =0, n=0;
charstr[]="12345";
while(str[i]!='\0')
{
n=n*10+(str[i]-'0');
i++;
}
printf("数值:%d\n", n);
return0;
}