#ifndef _BASE_HELP #define _BASE_HELP #include /* Convert the given value from the given base, to base 10 */ unsigned int to_decimal(std::string num, int from_base); /* Convert the given value from base 10 to the given base */ std::string from_decimal(unsigned int num, int to_base); /* Convert the given value from 'from_base', to 'to_base' */ std::string base_convert(std::string num, int from_base, int to_base); #endif