基本操作
//宏定义
#define FAILED 0
#define SUCCESS 1
typedef struct OLNode
{
int data;
struct OLNode* next;
}OLinkNode;
// 创建有序表
OLinkNode* CreateOLinkNode(int a[], int n)
{
OLinkNode* L = (OLinkNode*)malloc(sizeof(OLinkNode));
OLinkNode* s;
OLinkNode* r ;
OLinkNode* p;
L->next = NULL;
int temp = a[0];
for (int i = 0; i < n; i++)
{
p = (OLinkNode*)malloc(sizeof(OLinkNode));
p->