1 say
"Stack demo program"
2 say
"The numbers lines in each line shows the TOTAL number of items QUEUED()"
3 say
"in all buffers, the number of items in the topmost buffer QUEUED('T')"
4 say
"and the number of buffers QUEUED('B')"
7 say
"2 items are pushed"
8 say
queued() queued(t
) queued(b
)
9 say
"Create a New buffer"
13 say
"2 items are pushed"
14 say
queued() queued(t
) queued(b
)
15 say
"Create a New buffer"
19 say
"2 items are pushed"
20 say
queued() queued(t
) queued(b
)
21 say
"Create a New buffer"
25 say
"2 items are pushed"
26 say
queued() queued(t
) queued(b
)
28 say
"pull QUEUED()" queued() "items"
33 say
queued() queued(t
) queued(b
)