Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by HelloEarth

  1. HelloEarth

    A Beginner Pointer Problem

    delete myPhone; //nothing will happen to myPhone2 I can't do this because myPhone is not a pointer and my program will crash :(
  2. HelloEarth

    A Beginner Pointer Problem

    Oh no no I know it deletes myPhone2 because they are the same object. But what I ask is why does the method: myPhone.blah(); work if the object is erased from memory?
  3. HelloEarth

    A Beginner Pointer Problem

    //******************************** Telephone myPhone; Telephone* myPhone2 = &myPhone; delete myPhone2; myPhone.blah(); //******************************** How can I use: myPhone.blah(); if the object is destroyed by the pointer? :( What exactly is being deleted when I call: "delete myPhone2"?

Part and Inventory Search

Back
Top