fix: some error
This commit is contained in:
parent
4eed7f21ca
commit
2372b1a4bd
|
|
@ -1,9 +1,3 @@
|
|||
<!--
|
||||
* @Date: 2021-07-01 16:38:10
|
||||
* @LastEditors: viletyy
|
||||
* @LastEditTime: 2021-07-01 16:39:00
|
||||
* @FilePath: /viletyy.github.io/_posts/2020-01-01-linux-guide-software-management.md
|
||||
-->
|
||||
---
|
||||
layout: post
|
||||
title: "开源世界旅行手册:软件管理"
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ LOC(a_i) = LOC(a_1) + (i-1)*c
|
|||
|
||||
|
||||
### 获得元素操作
|
||||
即:只要i的数值在数组的喜爱奥范围内,就是把数组第i-1下表的值返回即可
|
||||
即:只要i的数值在数组的下标范围内,就是把数组第i-1下表的值返回即可
|
||||
|
||||
```c
|
||||
#define OK 1
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ tags:
|
|||
### 线性表的静态链表存储结构
|
||||
|
||||
```c
|
||||
/*线性表的金泰链表存储结构*/
|
||||
/*线性表的静态链表存储结构*/
|
||||
#define MAXSIZE 1000 /*假设链表的最大长度是1000*/
|
||||
typedef struct
|
||||
{
|
||||
|
|
@ -40,7 +40,7 @@ Status InitList(StaticLinkList space)
|
|||
|
||||
### 静态链表结点的申请
|
||||
```c
|
||||
/*若备用空间链表非空,则返回分配的结点下表,否则返回0*/
|
||||
/*若备用空间链表非空,则返回分配的结点下标,否则返回0*/
|
||||
int Malloc_SLL(StaticLinkList space)
|
||||
{
|
||||
int i = space[0].cur /*当前数组第一个元素的cur存的值*/
|
||||
Loading…
Reference in New Issue