Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Latest commit

 

History

History
45 lines (35 loc) · 1.38 KB

File metadata and controls

45 lines (35 loc) · 1.38 KB

2.1 线性表的定义和基本操作

什么是线性表?🤔

有点像函数

函数:一个 x 值只能对应一个 y 值 线性表:一个索引值只能有一个映射值

线性表的基本操作

详细文档可以参考 c++容器list 的相关函数

c++代码示例

  • 初始化 构造器 constructor
  • 求表长 length()或 size()
  • 清空 empty()
  • 获取元素
  • 插入
  • 删除
  • ...