HW4


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]

Posted by Amy on July 10, 2000 at 17:40:37:

For the example you posted on the web, there is a
void SetName (string& astring);

It gives a value to name variable. Why it is passed by reference? Can I pass it by value? Like
void SetName (string astring);

What's the difference between these?

Thanks!


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1704 Discussion WWWBoard ] [ FAQ ]