栈的操作是在于表的一端进行删除,增加操作,通常把这一端,增加和删除的操作叫做栈顶另一端叫做栈底,当表没有元素的时候称为空栈。栈的最大特战是:后进先出以下是关于STL中堆栈的运用代码代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1#include"stdafx.h"2#includestack3#includeiostream4usingnamespacestd;5intmain(intargc,char*argv[])6{7intn; Read More
posted @ 2010-12-14 22:08 稳扎稳打 Views(595) Comments(0) Diggs(0) Edit