二维数组做参数
潜藏在代码中的Bug

单链表的逆转

yichen posted @ 2014年5月15日 21:50 in Essay , 754 阅读
#include <iostream>
using namespace std;
 
void ReverseList(List L)
{
    if(L == NULL)
        return;
    pNode p = L->next;
    L->next = NULL;
    while(p)
    {
        pNode q = p;
        p = p->next;
        q->next = L->next;
        L->next = q;
    }
}
 
Avatar_small
AP 10th History Mode 说:
2022年9月17日 03:44

History can guide learners to see trends and processes from a broader, holistic perspective and to understand them. Through History, they come into contact with other cultures and societies and in this way they gain a more holistic understanding of the contemporary world and their place in this broader context. Telugu Medium, AP 10th History Model Paper English Medium & Urdu Medium Students of the State Board can download the AP 10th History Model Paper 2023 Pdf with Answers designed based on the revised syllabus and curriculum of the course. Class teachers and leading institutional experts are designed and suggested the Part-A, Part-B, Part-C, and Part-D exams like SA-1, SA-2, FA-1, FA-2, FA-3, FA-4 along with Assignments.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter