dynamic memory allocation
i have a problem with allocating memory to an array of class cage, and i need to do this cos i dont know the contents of the file beforehand then reading it into an array of class cage. i don't think i can write cage[i].min_weight or cage[i].max_weight, but what should i do??
}//class cage contains 2 private members min_weight and max_weight. J is the size of the class.
ifstream inClientFile("filename", ios::in);
for(i=0; i<j; i++)
can some kind soul help me with this?? Thanks a million!!