storing location, to variables, one return type


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Nathan on April 18, 2001 at 20:58:20:

In the container class, lifeform, I have somethign like getLocation. I need to return location, but it is two seperate integers, xloc and yloc. I guess I could my location into a small struct, a two dimensional array, or even a string and use stringstream, but is there a better way? Is there a way to return two variables rather than just one? I'd rather not create another data structure just for the location as my head is already swimming in abstract classes, base classes, derived classes, pointers, etc etc etc

Thanks


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]