what is the code for radix conversion hashing function in c++?


what is the code for making this hashing - radix conversion function:
example:
input number:123
input base: base 12
(1*12^0)+(2*12^1)+(3*12^2)= the answer will be
457 -get the last two digits
the final answer is:57
Topic archived. No new replies allowed.