You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
389 B

# 糟糕的单向链表栈
本章,让我们用一个不咋样的单向链表来实现一个栈数据结构,因为不咋样,实现起来倒是很简单。
首先,创建一个文件 `src/first.rs` 用于存放本章节的链表代码,虽然糟糕,也不能用完就扔,大家说是不 :P 然后在 `lib.rs` 中添加这一行代码:
```rust
// in lib.rs
pub mod first;
```