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,"林哥哥"?>
登录后复制

09-12 03:40