Problem of Pass by Reference in C++
From: alan (cheung_yuklun_at_i-cable.com)
Date: 12/15/03
- Next message: Jason Heyes: "Is -> syntactic sugar?"
- Previous message: Nils Petter Vaskinn: "Re: You know the default error beep in windows? How exactly do you do that?"
- Next in thread: lallous: "Re: Problem of Pass by Reference in C++"
- Reply: lallous: "Re: Problem of Pass by Reference in C++"
- Reply: Jord: "Re: Problem of Pass by Reference in C++"
- Reply: Dan Cernat: "Re: Problem of Pass by Reference in C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Dec 2003 01:30:32 -0800
Hi All,
I have a problem on C++ pass by reference concept.
I saw some funcions which is :
e.g.
int& func(int &a)
{
....
..
}
I understand the use of "int &a",
but I would like to know what is the use of "int&" ? and how to use it?
any examples?
Please help.
Best regards,
Alan
- Next message: Jason Heyes: "Is -> syntactic sugar?"
- Previous message: Nils Petter Vaskinn: "Re: You know the default error beep in windows? How exactly do you do that?"
- Next in thread: lallous: "Re: Problem of Pass by Reference in C++"
- Reply: lallous: "Re: Problem of Pass by Reference in C++"
- Reply: Jord: "Re: Problem of Pass by Reference in C++"
- Reply: Dan Cernat: "Re: Problem of Pass by Reference in C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]