java - c语言 数据结构 顺序存储结构线性表初始化问题
天蓬老师
天蓬老师 2017-04-18 10:45:06
0
4
770
天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(4)
小葫芦

Friends, what is initialized here should be the sequence table, because there is a key attribute of the sequence table length when defining the structure, so initializing the sequence table means initializing its length to zero.
There is no linked list here, linked lists and sequential lists are two different things
The storage structure of linear tables is divided into sequential storage (sequential list) and linked storage (linked list)

大家讲道理

It can be considered as the head node

黄舟

InitList initializes an empty "linked list" (array), len represents the number of valid nodes in the linked list. It’s a bit similar to the stack pointer

洪涛

The initialization linked list here is nothing more than setting Len to 0. There are only int data[MAXSIZE] and int len ​​in Sqlist L. Do you think that the value of data[MAXSIZE] must also be initialized before it is initialized?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template