atoi的实现
int myatoi(const char *src)
{
int total = 0;
while (*src)
{
total = total*10 + (int)(*src - '0');//什么意思?
src++;
}
return total;
}
atoi的实现
int myatoi(const char *src)
{
int total = 0;
while (*src)
{
total = total*10 + (int)(*src - '0');//什么意思?
src++;
}
return total;
}