摘要: 浮点数求幂,先把浮点数转化成整数,再按大数乘法计算,最后再考虑加上小数点,对小数点的位置和关于0的处理要考虑清楚。 代码如下:View Code 1 #include <cstdio> 2 #include <iostream> 3 #include <cstring> 4 #include <algorithm> 5 using namespace std; 6 7 const int maxn = 1000; 8 9 struct bign 10 { 11 int d[maxn]; 12 int len; 13 14 bign() 1... 阅读全文
posted @ 2013-04-19 20:09 xiaobaibuhei 阅读(208) 评论(0) 推荐(0)