for (int inum = num; inum; inum /= 10)//计算位数
{
//printf("\n%d", inum);//打印过程
wei++;
}
return wei;
}
for (int inum = num; inum; inum /= 10)//计算位数
{
//printf("\n%d", inum);//打印过程
wei++;
}
return wei;
}