注意点:
1. 用字符串、数组进行储存;
2.注意高精度位数的确定;
3.注意进位借位处理;
#include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <string>
#define N 10001
using namespace std ;
int main ( )
{
char a1 [ N ] , b1 [ N ] ;
int a [ N ] , b [ N ] , c [ N ] , i , x = 0 ;
memset( a ,

这篇博客主要介绍了C++实现高精度加法的模板,包括相关注意事项,并提供了作者的C++模板小站链接,以及其他如快速幂、高精度减法、乘法和并查集等模板的详细文章链接。
最低0.47元/天 解锁文章
7010

被折叠的 条评论
为什么被折叠?



