Queue(队列)是先进先出的集合; Stack(堆栈)是后进先出的集合.

Queue 的主要成员:


Stack 的主要成员:


Queue 测试:


Stack 测试:

posted on 2011-01-05 16:31  万一  阅读(1931)  评论(3编辑  收藏  举报