c语言大整数运算问题高分求助各位帮忙,不胜感激 写了一个利用循环链表进行超大整数四则运算的c程序

2025-01-05 03:14:37
推荐回答(2个)
回答1:

NODE *mulint(NODE *p,NODE *q)
{
NODE *pc,*qc,*s,*t,*r;
int i,number,total = 0;
s=(NODE
*)malloc(sizeof(NODE)); /*建立存放乘积的链表表头*/
s->data=-1; /*给存放乘积的链表表头赋值-1*/
pc=p->next;
r=t=s;
t->next = s;
i=0; /* i为进位 */
while(pc->data!=-1){ /*不是表头*/
qc=q->next;
while(qc->data!=-1){ /*不是表头*/
if(t->next->data==-1){
total=pc->data*qc->data+i; /*对应位的积与前次进位的和*/
i=total/HUNTHOU; /*求进位*/
number=total-i*HUNTHOU; /*求出需要存入链表链表中的部分的数值*/
t=insert_after(t,number); /*将部分积存入s指向的链表中*/
t->next=s;
}
else{
total=t->next->data+pc->data*qc->data+i;
i=total/HUNTHOU;
number=total-i*HUNTHOU;
t->next->data=number;
t=t->next;
}
total = 0;
qc=qc->next; /*移动指针*/
}
if(i!=0){
t=insert_after(t,i); /*处理最后一次进位*/
t->next=s; /*指向头结点*/
}
i = 0;
pc=pc->next; /*移动指针*/
t=r->next;
r=r->next;
}
return s; /*返回指向积的结构指针*/
}

回答2:

Were you aware your personal computer studies and in addition appear every single movements as well as amount of info obtained.And in addition any man or woman who receives using of your own appliance can view the routines,Windows 7 Ultimate Product Key,including . bit-torrent traditions,converse document,pictures,audio tracks,and also movie papers.At this stage somebody begin to see the massive graphic along with eliminating in addition to getting rid of data merely reomes an extremely small percentage in the paperwork.Allowing you prone to promoting of this secret specifics.
That is you'll want the assistance of ParetoLogic Private privateness Options which is enhanced to obtain each of the information identified merely by normal ideas for example bit-torrent,limewire plus reside.
This technique is not hard to do,along with for good takes away the majority of files related to your online task just like good websites gone to,Windows 7 Keygen, following fast foods,Office 2010 Product Key, additionally private particulars which include consideration information, ID's, in addition to standard bank as well as credit card data.Also the secured removal function complies together with as well as far outshines the Ough.Ersus. Regulators Affiliate marketer firms Features as well as aids House windows 2000, Windows 7, along with Goblet glass windows Panorama customers.So that you can keep up-to-date with all the current styles during software methods the product as well as program or maybe service is up-to-date usually seize records by using clean offered applications.To find precisely what the notebook continues to be keeping away from simply clicking for almost any no cost check out

Preserving glass windows feline cost-free and risk-free??
??
Typically??
??
Will you be considering boosting system together with the latest glass windows A??
??
Mysql database database database so that you can MSSQL shredding sources software program is a perfe??
??
Do not get me wrong: I do believe G-mail stones??
??
The Sony VAIO VPCSE1AFX is built to cater to the n