View Single Post
Old Nov 30th, 2006, 7:16 PM   #20
aznballerlee
Hobbyist Programmer
 
Join Date: Nov 2006
Posts: 111
Rep Power: 2 aznballerlee is on a distinguished road
Alright, I get that.. when I'm done adding the stuff, I'll have to call the destructor to delete the new array.

Would this be appropriate?
//      TODO:  Implement the destructor
//      Delete any dynamically allocated objects held by the Valley.

Valley::~Valley()
{
	 delete [] m_robots ;
	 delete [] m_sources;
	
}
aznballerlee is offline   Reply With Quote