Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
[b][red]This message was edited by PooBear at 2006-2-1 23:59:35[/red][/b][hr]
This is for Linux C++ (gcc compiler)
I have two functions which takes the parameters by refernce. It should be something like this.
The function "ProcessRequest()" in Class Process call the "Process()"
function of the foo class inside of it which has its argument passed by reference.
1. How do I pass n1 to "Process()" function.
2. What if I change Foo class Process( first &p1) function takes the parameter by value like this Process( first p1) and call just Like what I am doing in the function ProcessRequest() in class Precess.
Does that make copies?
Please some one explain to me.
int Process(first &p1)
int ProcessRequest (first &n1 , second & n2)
0 · ·