stacks,linked lists and queues

closed account (z0XLy60M)
Can any1 please tell me wtf are these ?
stacks,linked lists and queues
And how are they defined ,implemented and used in general C++ programming..


thank you :)
Ha ha!

They're data structures; different ways to store data.
Because at some point in time, people realized that choosing the way data is stored is part of solving the problem.
If you store your data in an appropriate way, it's easier for you to solve the problem -- and the computer solves it faster.

In C++, you get them "for free" as class templates in the C++ library:
http://cplusplus.com/reference/list/list/
http://cplusplus.com/reference/stack/stack/
http://cplusplus.com/reference/queue/queue/

And if you want to learn how to implement them yourself...
http://en.wikibooks.org/wiki/Data_Structures

Just make sure you have a good understanding of the C++ language before you jump into that.
Topic archived. No new replies allowed.