CodePudding
Home
front end
Back-end
Net
Software design
Enterprise
Blockchain
Mobile
Software engineering
database
OS
other
Home
>
Back-end
> Why this final output not to come out ah, I have a great god help me see?
Why this final output not to come out ah, I have a great god help me see?
Time:10-05
#include
#include
#include
# define NULL 0 typedef struct Polynode {int coef.//factor int exp;//power struct Polynode * next; } Polynode, * Polylist; Polylist polycreate () {head, rear Polynode * and * * s. Int c, e, Rear=head=(Polynode *) malloc (sizeof (Polynode)); The scanf (" % d % d ", & amp; C., & amp; E); While (c!==0) {s (Polynode *) malloc (sizeof (Polynode)); S - & gt; Coef=c; S - & gt; Exp=e; Rear - & gt; Next=s; Rear=s; The scanf (" % d % d ", & amp; C., & amp; E); } rear - & gt; Next=NULL; Return (the head); } Polylist multyploy (Polylist Polylist pa, pb) {t3 Polynode * t1, t2 *, * and * t, * rear, * p; Int c, e, T1=pa - & gt; next; T2=pb - & gt; next; P=(Polynode *) malloc (sizeof (Polynode)); P - & gt; Next=NULL; Rear=p; While (t2) {t3=(Polynode *) malloc (sizeof (Polynode)); T3 - & gt; Coef=t1 - & gt; Coef * t2 - & gt; Coef. T3 - & gt; Exp=t1 - & gt; Exp + t2 - & gt; Exp. T3 - & gt; Next=NULL; Rear - & gt; Next=t3; Rear=t3; T2=t2 - & gt; next; } t1=t1 - & gt; next; While (t1) {t2=pb - & gt; next; Rear=p; While (t2) {e=t1 - & gt; Exp + t2 - & gt; Exp. C=t1 - & gt; Coef * t2 - & gt; Coef. While (rear - & gt; Next& & Rear - & gt; Next - & gt; Exp
Page link:
https//www.codepudding.com/Backend/51549.html
Prev:
C, why always display output overrun, have free bosses have a look at
Next:
Why am I the last output not to come out ah, help to see?
Tags:
The C language
Related
Links:
CodePudding