C语言数据结构顺序表
C语言顺序表创建及其操作,很纯的C
1.静态结构操作
L = (struct SqList*)malloc(sizeof(struct SqList)*3);L这一个指针指向的是一个数组,数组有三个元素,数组每一个元素都是结构体,这个不是结构体指针数组。
#include <stdio.h>
#include <stdlib.h>
#include<stdbool.h>
#define maxsize 20
struct SqList
{
int length;
i
原创
2021-03-04 10:51:43 ·
207 阅读 ·
1 评论