本文实例讲述了C语言实现的循环单链表功能。分享给大家供大家参考,具体如下:
SClist.h
#ifndef __SCLIST_H__
#define __SCLIST_H__
#include<cstdio>
#include<malloc>
#include<assert>
typedef int ElemType;
typedef struct Node {
ElemType data;
struct Node *next;
}Node,*PNode;
typedef struct List {
PNode first;
PNode last;
size_t