摘要: //设计一个支持大数运算的计算器,其中乘法使用分治法求解。该计算器支持加减乘除还有开方根运算。#include #include #include #include #include #include using namespace std;list Add(list s, list t);list... 阅读全文
posted @ 2014-07-14 16:52 豪气干云 阅读(786) 评论(0) 推荐(0)
摘要: #include #include using namespace std;inline int compare(string str1, string str2){ if(str1.size() > str2.size()) //长度长的整数大于长度小的整数 ret... 阅读全文
posted @ 2014-07-14 16:49 豪气干云 阅读(376) 评论(0) 推荐(0)