www.pudn.com > superInt.rar > superInt.cpp
#include#include #define max 100000 using namespace std; int main(int argc, char *argv[]) { int a[max],b[max],c[2*max],i,j,k,flag=0,na=0,nb=0,fa=1,fb=1; char ch1[max],ch2[max]; char *p=ch1,*q=ch2; cout<<'\t'<<'\t'<<"-----=====*****大数相乘*****=====-----"< >ch1; //输入 while(*p!='\0') { if(*p=='-') //判断符号 { fa=-1; p++; continue; } else{ p++; na++; } } p--; //指针到最尾 for(i=0;i 9||a[i]<0)//判断是否是数字 { cout<<"输入有误!"< >ch2;//输入 while(*q!='\0') { if(*q=='-')//判断符号 { fb=-1; q++; continue; } else { q++; nb++; } } q--; //指针到最尾 for(i=0;i 9||b[i]<0)//判断是否是数字 { cout<<"输入有误!"< =0;j--) { flag+=c[j]; if(flag!=0) cout<