代码拉取完成,页面将自动刷新
#pragma once
#include<stdio.h>
#include<stdlib.h>
//#define N 100//方便更改
//typedef int SLDataType;//将int 重新命名为SLDataType方便更改
////静态顺序表
//typedef struct SeqList
//{
// SLDataType a[N];
// int size;//表示数组中存了多少数据
//}SL;
////各种接口函数
////void SeqListpushback(struct SeqList* ps, int x);
////为了方便后续更新使用typedef即下列这种
//
////静态特点如果满了就不让插入
//void SeqListinit(SL* ps);
//void SeqListpushback(SL* ps, SLDataType x);
//void SeqListpopback(SL* ps);
//void SeqListpushfront(SL* ps, SLDataType x);
typedef int SLDataType;//将int 重新命名为SLDataType方便更改
//动态顺序表
typedef struct SeqList
{
SLDataType *a;
int size;//表示数组中存了多少数据
int capacity;//表示数组的实际能存数据的空间容量多大
}SL;
void Seqlistprint(SL* ps);
//各种接口函数
//void SeqListpushback(struct SeqList* ps, int x);
//为了方便后续更新使用typedef即下列这种
void SeqListinit(SL *ps);
void SeqListdestroy(SL* ps);
void SeqListpushback(SL* ps, SLDataType x);
void SeqListpopback(SL* ps);
void SeqListpushfront(SL* ps, SLDataType x);
void SeqListpopfront(SL* ps);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。