Re: When is a stack used in real life?

From: Roger Willcocks (roger_at_rops.org)
Date: 05/10/04


Date: Mon, 10 May 2004 01:58:49 +0100


"Gunnar G" <debian@comhem.se> wrote in message
news:%P7nc.58533$mU6.237516@newsb.telia.net...
> Hello.
>
> I need some help to find an interesting programming exerise.
> We are going to study the stack, and therefor I'm looking for an
> interesting real world example where a stack is natural to use to handle
> the data.
>
> It's not hard to find an example, one would be to simulate my desk and me
> shuffling paper, (since there are of course large piles of paper) but that
> would hardly be interesting.
>
> Any good ideas?
>
> TIA,
> Gunnar.

Stack -> last in, first out...

redundancies
knitting

or - serious example - flood-filling a shape.

--
Roger