unsigned int Uintnum(char *digit) /*—–字符串转化为数字—–*/
{
unsigned int num = 0;
while(*digit != \0)
{
if(*digit >= 0 && *digit <= 9)
{
num = num * 10 + (*digit – 0);
digit++;
}
else
{
num = 0;
break;
}
}
return(num);
}
unsignedintUintnum(char*digit)/*—–字符串转化为数字—–*/{unsignedintnum=0;while(*digit!=#39;\0#39;){if(*
unsigned int Uintnum(char *digit) /*—–字符串转化为数字—–*/
{
unsigned int num = 0;
while(*digit != \0)
{
if(*digit >= 0 && *digit <= 9)
{
num = num * 10 + (*digit – 0);
digit++;
}
else
{
num = 0;
break;
}
}
return(num);
}