难以置信,就都用10进制作为中介再转换为其他进制数即可 #include <iostream> #include <map> #include <cmath> using namespace std; int main() { map<char, int> ctoi = { {'A',10},{'B',11},{'C',12},{'D',13},{'E',14},{'F',15},{'G',16}, {'H',17},{'I',18},{'J',19},{'K',20},{'L',21},{'M',22},{'N',23}, {'O',24},{...