高精度各种进制之间转换模板
摘要:
高精度进制转换把oldBase进制的数转化为newBase进制的数输出。调用方法,输入str,oldBase newBase.change();solve();output();也可以修改output(),使符合要求,或者存入另外一个字符数组,备用代码模板:#include<stdio.h>#include<string.h>#defienMAXSIZE 1000charstr[MAXSIZE];//输入字符串intstart[MAXSIZE],ans[MAXSIZE],res[MAXSIZE];//被除数,商,余数intoleBasw,newBase;//转换前后的进 阅读全文
posted @ 2012-06-15 20:35 c语言源码 阅读(518) 评论(0) 推荐(0)
浙公网安备 33010602011771号