Thread: String argument
View Single Post
Old Nov 23rd, 2005, 3:02 PM   #4
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
and this raises a question from me!

CMatrix(string&) {;}

please explain to me in psuedocode what happens when you write the ampersand AFTER the variable type and pass it to a constructor? personally i would have just wrote

CMatrix(string);

i guess my questions are! First: why write the ampersand after the variable type?
and Second:how would your program benefit from this?
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote