能够进行大数运算
源代码在线查看: caculate.cpp
#include "caculate.h"
#include "error.h"
#include
#include
using namespace std;
int main()
{
char c,q;
do{
stack as,bs;
do
{
cin>>c;
as.push(c-'0');
}while(c!='q');
do
{
cin>>c;
bs.push(c-'0');
}while(c!='q');
int N1,N2;
N1=as.size()-1;
N2=bs.size()-1;
Array1D a(N1),b(N2);
as.pop();
bs.pop();
for(int i=0;i {
a[i]=as.top();
as.pop();
}
for( i=0;i {
b[i]=bs.top();
bs.pop();
}
cout cout cout if(b[b.Size()-1]==0&&b.Size()==1) cout return 0;
cout cout cout cin>>q;
}while(q!='q');
return 0;
}