Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

How to Store Class Objects in vector

Share this post!
 Vote this!

In this tutorial, I will show how to store class objects in vector just like making a linked list using the STL. A conventional linked list is a structure of data that is linked together using the struct or class keywords.

Overview of Linked List.

An array is like a tupperware, they are containers but they are fixed in size. If you choose a big container it would be a waste of storage area on the other side, if you choose a small container chances are it would spill and that would be a big mess. Before the advent of the STL containers, programmers have found ways to solve the problem and that is creating a lists.

There are tree kind of Lists.

1.)Singly List
2.)Doubly List
3.)Trees  more...

0 comments:

Post a Comment