I'm working on this program(project) that parses some kind of messages and came up against two problems.
The first one is how to read data from .vmg file. Every .vmg file keeps data for one object of class Message. So do I first need to encode vmg file to txt and than read data from created txt file?
The second problem is how to create object of class Array, which elements are objects of class Message.
Something like this:
Code:
class Array {
Message** el; //class Message
public:
//...
}
So basically how to create an array of pointers to objects(but the size of an array is unknown)?Any suggestions?