#include <iostream> #include <stdio.h> #include <stdlib.h> using namespace std; typedef struct node { int date; struct node *next; }cirNode,*Linklist; void creat_list(Linklist& T) { Linklist p, p1; const int n = 3; int a[n] = { 5, 11, 14 }; p1 = T; T->date = a[0]; for(int i=1;i<n;i++) { p=(Linklist)malloc(sizeof(cirNode)); p->next = NULL; p->date = a[i]; T->next = p; T=p; }; p->next = p1; } void display_list(Linklist& T)//输出链表 { Linklist tail = T; Linklist p = T->next; while (p != tail) { cout << p->date << endl; p = p->next; } if (p) cou