uint32_t StrToInt(char *a,char len)
{
int i;
uint32_t sum;
sum = a[0] - '0';
i = 1;
while(a[i])
{
sum = sum*10 + a[i]-'0';
i++;
}
return sum;
}
void IntToStr(char *temp,unsigned int SN)
{
char index[10];
int i = 0;
while(i<10)
{
index[i++] = SN%10+'0';
SN /= 10;
}
i= 9;
while(i>-1)
{
temp[9-i] = index[i--];
}
}
真厉害