如:一个数字为123456,反序后为654321
int __fastcall fun_antitone(int input)
{
int i = input; //定义一个12345的整数
int temp=0;//temp作为存储的值
while(i!=0){
temp = temp*10 + i%10;
i/=10;
} //反序取出来
return temp;
}
int __fastcall fun_antitone(int input)
{
int i = input; //定义一个12345的整数
int temp=0;//temp作为存储的值
while(i!=0){
temp = temp*10 + i%10;
i/=10;
} //反序取出来
return temp;
}