摘要: 1 //大数阶乘-模拟手工算法 2 #include 3 #define N 3000 4 #include 5 using namespace std; 6 int a[N]; //定义大型整型数组 7 int main( ) 8 { 9 ... 阅读全文
posted @ 2015-08-06 17:38 喜欢算法的小杰 阅读(207) 评论(1) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 const int MAXLEN=100; 7 8 int*Str2Int(char*str) 9 {10 int i,len=strlen(str);11 i... 阅读全文
posted @ 2015-08-06 17:05 喜欢算法的小杰 阅读(229) 评论(0) 推荐(0) 编辑