| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sat Jun 24, 2006 9:08 am Post subject: 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 |
|
| Back to top |
|
 |
Alf P. Steinbach Guest
|
Posted: Sat Jun 24, 2006 9:10 am Post subject: Re: I've Got A problem On Referencing Functions |
|
|
* 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
|
Posted: Sat Jun 24, 2006 9:10 am Post subject: Re: I've Got A problem On Referencing Functions |
|
|
* 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
|
Posted: Sat Jun 24, 2006 9:10 am Post subject: Re: I've Got A problem On Referencing Functions |
|
|
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 |
|
 |
|