Quote:
Originally Posted by verizondude
What we want to do is to make a struct that can be remade into diffrent type of that struct. Like you want to add a new student to your database. we use the student struct to get his information. we want it so that all the diffrent students have a diffrent struct so that we dont have manually add a new struct every time some is new. so its automated.
|
Hm... Maybe I didn't understand well, but you have encountered a problem where different students have a different set of attributes, and so you may need a specific struct to define each one?
Well, if that's the case you should also look into classes and inheritance. You will need to make a base class and then make subclasses to cover all your needs. You can then add any subclass of that base class into a vector or an array and process them.