I've Got A problem On Referencing Functions

Newbie Member
23Jun2006,19:50   #1
iman_snake's Avatar
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
Contributor
24Jun2006,16:41   #2
Aztec's Avatar
Function is returning reference of point class object.
Newbie Member
24Jun2006,19:00   #3
iman_snake's Avatar
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