利用c++给的oct,dec,hex(8,10,16进制) #include<bits/stdc++.h> using namespace std; int main() { int n; cin>>hex>>n; //oct,dec,hex(8,10,16进制) cout<<dec<<n; //oct,dec,hex(8,10,16进制) return 0; }