Top: Programming: C / C++ : Sequential Lists: The Queue and Stack Class
Sequential Lists: The Queue and Stack Class
Sequential lists are collection of objects that can be entered or extracted in a sequential way. They don’t provide access to objects in the middle on the list. You can only access a specific object each time you extract it. The two classes named “Queue” and ”Stack” which belong to the “System.Collections” namespace provide you with this kind of functionality, each of them in a slightly different way. The Queue class offers you access to the first object on the list, whereas the Stack class offers you access to the last object on the list. By first and last we mean the first and last object that entered the list. So, the Queue class is a First-in, First-out collection(FIFO Collection) whereas the Stack class is a Last-in, First-out(LIFO Collection). In this tutorial you will create and use both classes to see how they behave when entering and extracting data. You will usually work with such collections with temporary and disposable data. For a more permanent use, arrays provide much better functionality.
ADVERTISMENT
More C / C++ Tutorials for Programming
Top: Programming: C / C++: Another ASM tutorial
Top: Programming: C / C++: Templates in c++
Top: Programming: C / C++: Functions in C
Top: Programming: C / C++: Buffer using allegro c++
Top: Programming: C / C++: Containers in C++
Top: Programming: C / C++: Console Calculator
Top: Programming: C / C++: Function Prototypes
Top: Programming: C / C++: C++ Language Tutorial
» Hardware reviews
SOFTutorials
- » Add a tutorial (and get rewarded)
- » Login
- » Register (3D Kingdom)
- » About/FAQ/Contact
Highest Rated
![]() |
5 Ways to Put PowerPoint Presentation on Web - 5 ways to guide you to put PowerPoint presentation on Web and share with ot...
Rated: |
![]() |
Dodge and Burn with more control painting with soft light photoshop tutorial. - In this tutorial we will apply the same effect as dodging and burning but w...
Rated: |
![]() |
Recover detail from highlights and exposed skin photoshop tutorial. - In this tutorial we’re going to recover detail from the skin area and have ...
Rated: |
![]() |
HOW TO ENHANCE EYES IN PHOTOSHOP - This photoshop tutorial will show you a fast technique to enhance eyes and ...
Rated: |
Most Popular
![]() |
Improving capture performance in Windows Movie Maker - Easiest way to improve Capture performance in Windows MovieMaker. Follow th...
Rated: |
![]() |
V-ray Glass Material - If you want very realistic render you need to use V-ray Render plugin. In t...
Rated: |
![]() |
Getting Started with PowerPoint - This tutorial describes tasks that you do almost every time you run the pro...
Rated: |
![]() |
The Matrix Raining Code Video Tutorial - Tutorial showing how to create and animate the raining code effect from the...
Rated: |








No comments at this moment