#include
Typedef struct lnot {int data; intend; slate lnot;} lnode, * list;
/// // Auxiliary function lnode * createnode () {lnode * p = (lnode *) malloc (sizeof (lnode)); if (! P) {exit (0);} return p;}
Void destoryNode (lnode * p) {free (p);}
List listinsertfront (list l) {lnode * p = cretenode (); p-> next = L; return p;}
Lnode * listremovenext (list prev) {lnode * p = prev-> next; prev-> next = p-> next; return p;}
///// creation process List create, {list tail, l = cretenode (); l-> data = 1; l-> code = ncount;
Tail = L; // Printf ("Create 0th, No.% D, Irself in% PN", L-> Code, L); for (int i = 1; i
Return L;
// Input Process Void InitringQueue (List L, Int Ncount) {List BEGIN = L; INT J = 0;
While (j! = ncount) {printf ("Input the parameters of the% D", J 1); scanf ("% d", & begin-> data); if (begin-> data> 0) {begin = Begin-> Next; J ;}}}
// Delete Process List RemoveFromqueue (List L, Int Nidx) {List BEGIN = L, End = L-> Next; Int IDX = NIDX;
While (begin! = End) {// printf ("From the first% D number", becoming-> code, idx); / / Find N-1, for (int i = 0 i
INT main () {int N = 0; Printf ("Input Link Location Length"); Scanf ("% D", & n); if (n <= 0) {RETURN 0;} List L = CreateringQueue (n); inIntringQueue (L, N); Lnode * last = RemoveFromqueue (L, 3);
Printf ("Last IS% D, DATA IS% D", Last-> Code, Last-> DATA); RETURN 0;}