If I needed to make a type for a special purpose than I could make a structure or a union, however C++ allows you to create a class. If I only wanted data inside of the type though (no methods), would it still make more sense to make a class instead of a structure? and say I wanted to store this type in a vector because the vector supports more operations than an array or an array of pointers to dynamically allocated types. Is a class type the way to go or not?
Now as far as I know I can access the members of the data type in either an array or a vector but an array has an index whereas in a vector I would use a variable of the same data type and iterate through the vector with something like a for instance loop, until I found the matching data type member.
Which would I use? What would I do. Or should I pack it up!