//将ASCII值转化为十进制数值
unsigned int result(unsigned int x)
{
unsigned int result=0;
if(x>=65)
{
result = x-65+10;
}
else
{
result = x-48;
}
return result;
}
C++实现ASCII值转十进制的子函数
最新推荐文章于 2023-08-08 15:59:50 发布
//将ASCII值转化为十进制数值
unsigned int result(unsigned int x)
{
unsigned int result=0;
if(x>=65)
{
result = x-65+10;
}
else
{
result = x-48;
}
return result;
}