C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I've Got A problem On Referencing Functions

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sat Jun 24, 2006 9:08 am    Post subject: I've Got A problem On Referencing Functions Reply with quote



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
Back to top
Alf P. Steinbach
Guest





PostPosted: Sat Jun 24, 2006 9:10 am    Post subject: Re: I've Got A problem On Referencing Functions Reply with quote



* iman.sharafodin (AT) gmail (DOT) com:
Quote:
Hello all u guys out there

"you"


Quote:
Ive got a problem Undrestanding in example what it means

missing apostrophe, uppercase U, "understanding"


Quote:
class point
{
...
}

missing semicolon


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

for a newbie this function constitutes an error


Quote:
whats meaning of & in a function??

missing apostrophe, extranous question mark

the meaning of "&" depends on the context; consult your nearest C++
textbook.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Back to top
Alf P. Steinbach
Guest





PostPosted: Sat Jun 24, 2006 9:10 am    Post subject: Re: I've Got A problem On Referencing Functions Reply with quote



* Ian Collins:
Quote:
Alf P. Steinbach wrote:
* iman.sharafodin (AT) gmail (DOT) com:

Hello all u guys out there

"you"

Not all of us sit on bonfires on the 5th of November...

:-)

Actually our bonfire night, in Norway, is tonight, 23/24th of June,
midsummer's night!

One bonfire got a little out of hand this year (it was probably
calculated using C instead of C++): <url:
http://www.aftenposten.no/nyheter/iriks/article1365611.ece>. The guy on
the left in the upper photo is probably the one who sat on top.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Back to top
Ian Collins
Guest





PostPosted: Sat Jun 24, 2006 9:10 am    Post subject: Re: I've Got A problem On Referencing Functions Reply with quote

Alf P. Steinbach wrote:
Quote:
* iman.sharafodin (AT) gmail (DOT) com:

Hello all u guys out there


"you"

Not all of us sit on bonfires on the 5th of November...


--
Ian Collins.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.