|
Re: Can't use pointers nor refrences.
Sorry, I should have been a bit more clear. I know they were passing it by pointer so they could change it inside the function, but I would have thought it better practice to return the value than output from inside the function. Isn't it good practice, in general, to have functions be as close to real mathematical functions as possible (one set of inputs always maps to the same outputs and the only outputs are what the function returns)
__________________
Learn, edit, inspire: The FIRSTwiki.
Team 1257
2005 NYC Regional - 2nd seed, Xerox Creativity Award, Autodesk Visualization Award
2005 Chesapeake Regional - Engineering Inspiration Award
2004 Chesapeake Regional - Rookie Inspiration award
2004 NJ Regional - Team Spirit Award
Last edited by Max Lobovsky : 05-11-2004 at 14:41.
|