Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

«ü¥O¤£¤ÓÀ´

0 views
Skip to first unread message

快放寒假吧!

unread,
Oct 28, 1998, 3:00:00 AM10/28/98
to


struct node{
int info;
node *next;
node(int el,node *ptr=0)
{info =el;next=ptr;}
}*head,*tail,*tmp;


void List::addHead(int el)
{ head =new node(el,head);
if (!tail){tail=head;}
}
以上是class Link 中的struct node

請問head =new node(el,head);的作用(詳細一點)

Thanx~~~~

--
※ Origin: 楓橋驛站<bbs.cs.nthu.edu.tw> ◆ From: u861525.JEN.AB.nthu.edu.tw

0 new messages