Hey folks. Question: How do you implement Vectors for a user defined class? Is this even possible? I've searched the boards, the faq and the tutorials and all of them only refer to using the predefined C++ datatypes. What about custom data types or classes? Could someone please shine some light on this for me? Thanks.



LinkBack URL
About LinkBacks



They [the text] tell you how to do everything except the most important thing. Now how was I supposed to know that vectors for user defined objects required an overloaded assignment operator? I would never have thought of that. What's odd joshdick is that I already have a copy constructor in the class. Go figure.
)