高精度
Sleppypot
困难的路越走越容易,容易的路越走越难。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
大数加减乘除
#include#include#include#include#includeusing namespace std;//compare比较函数:相等返回0,大于返回1,小于返回-1int compare(string str1,string str2){ if(str1.length()>str2.length()) return 1; else if(str原创 2016-07-15 12:41:51 · 321 阅读 · 0 评论 -
高精度加减乘除
#include #include #includeusing namespace std;inline int compare(string str1, string str2){ if(str1.size() > str2.size()) //长度长的整数大于长度小的整数 return 1; else if(str1.size() <原创 2016-08-14 12:59:42 · 391 阅读 · 0 评论
分享