本体思路是,创建新结点使得原链表中的结点头插于新结点从而使得实现倒序,再返回创建的新结点,因为那个时候新结点就是新链表的头结点
struct ListNode* ReverseList(struct ListNode* pHead )
{
    struct ListNode* New=NULL;
    struct ListNode*tail, *cure=pHead;//设置tail结点保留cure的next因为,cure的指向会改变。
    while(cure)
    {
        tail=cure->next;
        cure->next=New;
        New=cure;
        cure=tail;
    }
    return New;
}