摘要: /*Author:JustinZhangEmail:uestczhangchao@gmail.comTime:2012年4月22日23:39:40desc:高精度加法*/#include <iostream>#include <cstring>using namespace std;/*a、b为字符数组,内部存储了加数和被加数,ans用来存放最终结果,也为字符数组*/void arbitary_add(const char *a, const char *b,char *ans){ int lena = strlen(a); int lenb = strlen(b); 阅读全文
posted @ 2012-04-23 00:16 justinzhang 阅读(438) 评论(0) 推荐(0) 编辑