#包含
#包含
#包含
#包含
用户命名空间STD;
结构节点
{
浮点核心;
int exp;
结构节点*下一步;
(;
//typedef struct tagNode Node;
voidcreatlisthead(intm,结构节点*头) )。
{
结构节点* p=null; //暂时使用
int n=0;
int exp;
浮点核心;
出局了
出局了
cincoef;
出局了
cinexp;
while(0==0) )。
{
//分配空格并分配值
n;
if(n==m ) break;
p=(结构节点* ) malloc ) sizeof (结构节点);
p-exp=exp;
p-coef=coef;
p-next=head-next; 代入next域很容易忘记
头下一步=p;
出局了
cincoef;
出局了
cinexp;
}
}
/*voidinputlink(intm、int n、struct Node *pa、struct Node *pb ) {
节点* P1=(节点* ) malloc ) sizeof (结构节点);
节点* P1=pa-next;