I'm trying to help someone with homework.. So you do not have to give me direct answers if you don't want to.. it is not my homework.
class Types
{
//No default constructor..
Types(int Param1, int Param2);
};
class Objects
{
public:
Types* Original;
Objects();
~Objects();
};
//The problem is here!
Objects::Objects()
{
Original = new Types[100]; //I cannot do this.. I know that.. then what am I supposed to do?
}
Objects::~Objects()
{
delete [] Original;
}
int main()
{
Objects X; //This is supposed to be dynamic.. I am not told how much records from a file it is supposed to hold.. so I though Fseek and tell would help me declare a size?
//Do I even need to do Root = new Types[100] or do I just do that for Objects X = new Objects[100];?
}