顺序表及其创建功能函数的数据结构
发布时间
阅读量:
阅读量
//SqList.h
#ifndef _SQ_LIST_
#define _SQ_LIST_
#define MAX 100
typedef struct _LinerList {
int data[MAX];
int length;
}SqList;
#endif // !_SQ_LIST_
//SqList_OP.h
#ifndef _SQ_LIST_OP_
#define _SQ_LIST_OP_
#include <stdio.h>
#include <stdlib.h>
#include "SqList.h"
void Init_List(SqList *L) { //初始化
L->length = 0;
}
void Prt_List(SqList *L) { //打印
int count = 0;
printf("The list is:\n");
全部评论 (0)
还没有任何评论哟~
