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 // ......}