官术网_书友最值得收藏!

API

This is the tricky part, as it is very hard to predict ahead of time what kinds of method your application will require. Therefore, it's usually a good idea to start off with whatever is the norm and then make changes as your applications demand. Going by that, you would end up with an API that looks something like this:

  • Push: Pushes an item to the top of the stack
  • Pop: Removes an item from the top of the stack
  • Peek: Shows the last item pushed into the stack
  • Clear: Empties the stack
  • Size: Gets the current size of the stack
主站蜘蛛池模板: 金堂县| 远安县| 高青县| 隆化县| 旺苍县| 固镇县| 江都市| 台中市| 壤塘县| 会同县| 东海县| 合川市| 无锡市| 民勤县| 夏邑县| 浮山县| 宁乡县| 原阳县| 饶阳县| 盐源县| 佛教| 栖霞市| 梁平县| 凤冈县| 普兰店市| 古交市| 新建县| 安阳县| 武威市| 喀什市| 兴海县| 凤凰县| 什邡市| 韶关市| 新建县| 镇赉县| 侯马市| 牙克石市| 手机| 广安市| 托克托县|