
Re: Returning a struct from a function
Hi there,
You can't return a struct from a function, unfortunately. As for the pass by reference thing, think of it as a pointer.
What I tend to do is use the & operator to pass structs to my functions that I want modified.
- Xander
_________________|
Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)| My Blog:
I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [
Project Page]