php单链表实现_PHP教程
程序员文章站
2022-04-20 14:16:16
...
php单链表实现
= __construct(='',=''->no=->name= addHero(,== (->!=(->->no>->=->->=->==; (->->no==->no){ "该位置已有人,不允许占位";=;{ =->(){->=
showHero(=(->!= ->->no.":".->->name."
"=->
delHero(,=(->!=(->->no==(->->)->=->-> ->==->
findHero(,=(->!=(->->no==){=->->->
updateHero(,,=(->!=(->->no==){=->->->name=== Hero(1,"宋江",= Hero(6,"林冲",= Hero(2,"吴用",= Hero(4,"李逵",
delHero(,4
findHero(,6
updateHero(,6,"林哥哥"?>