Thx a lot!!!
I worte something like this for right shift...
int shift_right(int num)
{
int i = log10(num)+1; //Get number of digits
int c = num/10; //Get far right digit
int d = num-(c*10);
//Add previous far right digit onto left
num = c + (d*pow(10,i-1));
return num;
}
I've checked it... no bugs... but... just want someone to give me some comments of it......
Thx!!