Single Link List做Stack與Queue


1.stack
a.push
I.t.data = item
II.t.link = top
III.top = t
b.pop
I.t = top
II.item = top.data
III.top = t.link
IV.ret(t)

results matching ""

    No results matching ""