Re: String stuff in C++


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

Posted by hussein on July 28, 1999 at 14:29:28:

In Reply to: Re: String stuff in C++ posted by Milly Pan on July 28, 1999 at 14:11:41:

: So is the string automatically passed by reference, since it's represented like a pointer? Or do we need to, when calling our recursive function, say something like function(blah, blah, &string)?

you dont need references if you use a pointer - just keep on passing the pointer each time you call the function, and all instances will be able to dereference and modify the actual string where it is stored ...

---

hussein


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


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