Monday, May 24, 2010

How do I make a vector of items of a custom type in c++?

I'm getting pretty tired of using arrays, especially when the good folks who wrote the STL went to all of the trouble of providing vectors. I would like to use a vector to store items of a type that I create. For instance, if I have a type foobar that is an int, a double, a pointer, and a char, how do I make a vector of foobars and fill it?





Thanks!

How do I make a vector of items of a custom type in c++?
use vector of stl to know more go to codeproject.com

online survey

No comments:

Post a Comment