2013年6月12日

双向循环链表

摘要: <?phpclass double_link { public $name; public $next; public $prev; public function __construct($name) { $this->name = $name; }}function get_double_link($total) { $current = $first = new double_link(1); $pre = NULL; for ($i=2; $i < $total; $i++) { $current -> ne... 阅读全文

posted @ 2013-06-12 18:32 mtima 阅读(154) 评论(0) 推荐(0) 编辑

导航