List Reverse(List L)
{
List p, q;
p = L;
q = L;
L = NULL;
while (p)
{
p = p->Next;
q->Next = L;
L = q;
q = p;
}
return L;
}
原文地址:https://www.cnblogs.com/ruoh3kou/p/9975225.html
时间: 2024-10-13 13:32:10