I've built a class, one parent and multiple children, that I need to group together to eventually be stored in a single file. For the moment I've gone with something like this:
CObject *group //CObject is the class in question group = (CObject*)calloc(1, sizeof(CObject)); //1 element just to start off
This compiles, and using "group." calls the variables and methods from the class, which also compiles. But what I can't seem to access is the constructor. My class has both a blank default constructor and the standard initialized all variable constructor, the latter which I want to use. However, "group." does not bring up the constructor option, and "group()" does not compile. So how do I use my constructor?