Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   I've Got A problem On Referencing Functions (http://www.go4expert.com/forums/ive-referencing-functions-t925/)

iman_snake 23Jun2006 19:50

I've Got A problem On Referencing Functions
 
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

Aztec 24Jun2006 16:41

Re: I've Got A problem On Referencing Functions
 
Function is returning reference of point class object.

iman_snake 24Jun2006 19:00

Re: I've Got A problem On Referencing Functions
 
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


All times are GMT +5.5. The time now is 15:28.