devxlogo

October 12, 2000

New and Delete

Question: In my class declaration I have a member: CSomeUsefulClass* m_one; In my implementation file, there is a function: DoMyThing(){CSomeUsefulClass* m_two;m_two = new CSomeUsefulClass(param1, param2);//blah…m_one = m_two;//do my thing…} then