2020-12-12
大整数相减;相比于大整数相加,大整数相减多了一个比大小和最后输出时再次将int型数组转化成字符串的形式进行输出;
#include <bits/stdc++.h>
using namespace std;
const int maxn = 210;//固定数组的大小;
string yunsuan(char *s1, char *s2){
int a[maxn], b[maxn];
memset(a, 0, sizeof(a));//a,b数组的初始化;
memset(b, 0,
原创
2020-12-12 00:16:49 ·
109 阅读 ·
0 评论