摘要:
1 <?php 2 /**堆栈 使用数组模拟入栈和出栈*/ 3 class myStark{ 4 public $top = -1; 5 public $maxStark = 5; 6 public $stark = array(); 7 public function __construct(){ 8 9 }10 /*入栈*/11 public function push($val){12 if($this->top > $this->maxStark - 1){13 return false... 阅读全文
posted @ 2012-12-03 23:40
linzj
阅读(808)
评论(0)
推荐(0)

浙公网安备 33010602011771号