reference objects (newbie question)

From: Roderik (ng_at_nl100.cjb.net)
Date: 11/28/03

  • Next message: Anthony Borla: "Re: XML inputstream"
    Date: Fri, 28 Nov 2003 21:35:52 +0100
    
    

    Hi,

    I'd like to make a function to manipulate objects of a given class.

    Let's say there are two objects, called MyPoint1 and MyPoint2.
    They are both of the class cCustomPoint and contain an x an y
    attribute.

    The function should assign a value for x to a passed object (MyPoint1
    or MyPoint2).

    How should I make this function so it knows which object to manipulate
    and the value to be assigned?

    Kind regards,

    Roderik


  • Next message: Anthony Borla: "Re: XML inputstream"