C++ Linked List

Discussion in 'Computer Science & Culture' started by gram1234, Mar 7, 2003.

Thread Status:
Not open for further replies.
  1. gram1234 Registered Member

    Messages:
    18
    I HAVE A LINKED LIST WITH THREE FUNCTIONS.PRINT ,INVERT,AND DELETECOPY.HOW DO I GO ABOUT CALLING INVERT AND DELETECOPY WITH MY PRINT FUNCTION SO THAT WHEN I CALL INVERT NOTHING WILL ACTUALLY HAPPEN UNTIL I CALL THE PRINT FUNCTION,LIKEWISE FOR THE DELETECOPY FUNCTION. REALLY STUCK ,HELP GREATLY APPRECIATED.THANKS
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Reid Registered Senior Member

    Messages:
    97
    Not sure I understand this correct but...

    Maybe you can send some value to your invert function, say 1 if its called from print, and make a check in the beginning of invert, if it's not 1 then just make a return
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
Thread Status:
Not open for further replies.

Share This Page