(a)Node *p0=new Node('0');
Node *p1=p0 -> next=new Node('1');
p1->next=NULL;
(b)Node *p0=new Node('0');
Node *p1=new Node('1',p0);
Node *p2=p1;
(c)Node *p0=new Node('0');
Node *p1=p0 ->next=new Node('1');
Node *p2=p1 ->next=new Node('2',p1);
本文共 295 字,大约阅读时间需要 1 分钟。
(a)Node *p0=new Node('0');
Node *p1=p0 -> next=new Node('1');
p1->next=NULL;
(b)Node *p0=new Node('0');
Node *p1=new Node('1',p0);
Node *p2=p1;
(c)Node *p0=new Node('0');
Node *p1=p0 ->next=new Node('1');
Node *p2=p1 ->next=new Node('2',p1);
转载于:https://www.cnblogs.com/ywq-930214/p/3303864.html