Skip to Content
Microsoft® Visual C#® .NET 2003 Kick Start
book

Microsoft® Visual C#® .NET 2003 Kick Start

by Steven Holzner
June 2003
Intermediate to advanced
624 pages
12h 41m
English
Sams
Content preview from Microsoft® Visual C#® .NET 2003 Kick Start

Using Stacks

Queues are first-in, first-out—FIFO—constructs, which is often what you need to handle time-consuming tasks that you want to handle in a first-come, first-served manner. But there are occasions when you want to reverse the order of retrieval with first-in, last-out—FILO—constructs, and in that case you use stacks. The usual example here is a spring-loaded stack of plates in cafeterias, where the first plate in the stack is the last plate taken off. You've probably heard of stacks in programming; local variables in methods are pushed onto the top of the application's internal stack to store them and popped from the top of the stack to retrieve them in reverse order. You can see the significant public properties of Stack objects in ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® .NET Kick Start

Microsoft® .NET Kick Start

Hitesh Seth

Publisher Resources

ISBN: 0672325470Purchase book