摘要: 该题采用列表的概念 1、附一些关于链表的相关操作函数 list<int>::iterator it; // 定义一个名为 it 的迭代器(指针)。 l.size(); // 返回链表的节点数量。 l.begin(); // 返回链表头部的迭代器(指针)。 l.end(); // 返回链表尾部的迭代器 阅读全文
posted @ 2025-03-25 16:13 夕瑶^ 阅读(35) 评论(0) 推荐(0)