C++實現——任意進制之間的轉換

#include<iostream> #include<string> using namespace std; //任意進制之間的轉換 /** * s1 轉換以前的數 * s2 轉換以後的數 * d1 原進制數 * d2 須要轉到的進制數 * 高於9的位數用大寫'A'~'Z'表示,2~16位進制經過驗證 */ void conversion(string s1,string &s2,long
相關文章
相關標籤/搜索