#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)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交