📄 linearlist2.h
字号:
struct student{
char name[10];
short grade;
};
typedef student ElemType;
struct LinearList
{
ElemType*list;
int size;
int MaxSize;
};
void InitList(LinearList& L,int ms);
void ClearList(LinearList& L);
int ListSize(LinearList& L);
bool ListEmpty(LinearList& L);
bool ListFull(LinearList& L);
void TraverList(LinearList& L);
bool FindList(LinearList& L,ElemType& item);
bool UpdateList(LinearList& L,const ElemType& item);
bool InsertList(LinearList& L,const ElemType& item,int mark);
bool DeleteList(LinearList& L,ElemType& item ,int mark);
void OrderOutputList(LinearList& L,int mark);
bool operator == (const ElemType& r1,const ElemType& r2);
bool operator < (const ElemType& r1,const ElemType& r2);
ostream& operator << (ostream& ostr,const ElemType& r);
istream& operator >> (istream& istr,ElemType& r);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -