After having us write codes to convert decimal numbers to another base my faculty has now asked me to write codes to convert a number from ANY base to another. He explains that itz simple since i already wrote the program to convert integer to another base. So i just need to write the module to convert a number in any base to decimal integer and then just use the function i already have. Well, simple enough. But i was wondering if there's anyway i can do that without first converting the number to decimal and then to another base. Would not that make things faster? or itz just a bad idea since i have to redefine the way C/C++ does itz arithmetic operations?

Straight from one base to another without the intermediate decimal number. So is it possible(i mean easily)?