View Full Version : Stroing class objects in a structure
subrat17june
8th July 2013, 06:41
I have to use multiple object of a class.
Hence i need to store and retrieve the class objects at run time.
How can i store the class objects in a structure ? and retrieve them as required?
Thanks.
ChrisW67
8th July 2013, 06:57
How can i store the class objects in a structure ? and retrieve them as required?
Any way you like in any structure that makes sense for your application. Obvious candidates are plain C arrays, vectors, linear linked lists, maps, hashes, trees...
subrat17june
8th July 2013, 08:47
Obvious the structure would have an array to save the objetcs
so can i get some code help on the same for storing objects in an array ?
Class File is the name of class..
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.