以下是引用beyondyf在2011-10-20 15:04:20的发言:
void DeleteMaxNode(List list)
{
ListNode p, max;
p = list->head;
max = p;
while(p->next != NULL)
{
if(p->next->item > max->next->item) max = p;
p = p->next;
}
p = max->next; //将被删除的结点,按需要自己处理
max->next = max->next->next;
}
void DeleteMaxNode(List list)
{
ListNode p, max;
p = list->head;
max = p;
while(p->next != NULL)
{
if(p->next->item > max->next->item) max = p;
p = p->next;
}
p = max->next; //将被删除的结点,按需要自己处理
max->next = max->next->next;
}
厉害, ,...

我就是真命天子,顺我者生,逆我者死!