I've Got A problem On Referencing Functions

Discussion in 'C' started by iman_snake, Jun 23, 2006.

  1. iman_snake

    iman_snake New Member

    Joined:
    Jun 23, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hello all u guys out there

    Ive got a problem Undrestanding in example what it means

    class point
    {
    ...
    }


    point &function1()
    {
    point sample;
    return sample;
    }

    whats meaning of & in a function??

    Tank you
     
  2. Aztec

    Aztec New Member

    Joined:
    May 9, 2006
    Messages:
    90
    Likes Received:
    0
    Trophy Points:
    0
    Function is returning reference of point class object.
     
  3. iman_snake

    iman_snake New Member

    Joined:
    Jun 23, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Yeah I've Got it C++ Adicted boy ;)
    tanx in advance

    But second thing here is this program got an error
    because when function Finished Sample Will Die
    And there is nothing to refere
    Tanx in anyway ive got it
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice