#include<iostream>
#include <string>
using namespace std;
#define MAXSIZE 100
#define OK 1
#define OVERFLOW 0
typedef int Status;
typedef struct
{
string name;
int price;
}Book;
typedef Book ElemType;
typedef struct
{
ElemType *elem;
int length;
}List;
//函数
//初始化函数
Status Initlist(List &l)
{
l.elem=new ElemType[MAXSIZE];
if(!l.elem)
数据机构 c语言 线性表(顺序表)
最新推荐文章于 2020-11-29 00:02:52 发布