提交 f573695c 创建 作者: 宋海霞's avatar 宋海霞

modify

上级 28676528
...@@ -3,35 +3,35 @@ ...@@ -3,35 +3,35 @@
// //
// 在此处包含 C 标准库头文件 // Include the C standard library header file here
// //
#include <stdio.h> #include <stdio.h>
// //
// 在此处包含其他头文件 // Other header files are included here
// //
// //
// 在此处定义数据结构 // Define the data structure here
// //
#define MAX_LENGTH 20 // 线性表的最大长度 #define MAX_LENGTH 20 // The maximum length of a linear table
typedef int ElemType; // 线性表中元素的类型 typedef int ElemType; // The types of elements in a linear table
typedef struct { typedef struct {
ElemType Elements[MAX_LENGTH]; // 使用数组存储线性表中的元素,线性表的最大长度即为数组长度。 ElemType Elements[MAX_LENGTH]; // An array is used to store elements in a linear table whose maximum length is the length of the array.
int nLength; // 线性表的实际长度,即线性表中元素的个数。 int nLength; // The actual length of the linear table, the number of elements in the linear table.
}SqList; }SqList;
// //
// 在此处声明函数 // Declare the function here
// //
int InsertBefore(SqList* pList, ElemType Elem, int i); int InsertBefore(SqList* pList, ElemType Elem, int i);
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论