The Last Node of Link List

xiaoxiao2021-03-06  108

The Last Node Should Pointer to Itself, as Following:

Node * z = new node;

z-> next = z;

That Could Display The Records N Rather Than N 1.

The Display Condition Should Be Written As:

While (t! = t-> Next) {// do something // ......}

转载请注明原文地址:https://www.9cbs.com/read-125185.html

New Post(0)