Mail Archives: djgpp/1998/06/22/07:54:46
On Sat, 20 Jun 1998, Sal wrote:
> I come from a pascal background... anyway, I know how to use a fundtion to
> ruturn a value. What do I do to mave something that ruturns several
> values??
>
If you use C++ you can use pass by reference.
Just put & after datatype
ex.
int foo(int& temp1, int& temp2)
and when you change a value of temp1 and temp2 then the values
of the passed variables will be changed too.
It exhibits pascal var.
> Thanks ALLOT!!!!
>
>
> --
>
> Salvador Santolucito III
>
>
> o
> __o </\_
> \< __/\
> /\o_ (()) (()) /
> ^^^^^^^^^^
> "I wish that I could think of an inspiring quote..."
> -Salvador Santolucito III
>
>
>
>
>
>
- Raw text -