Hi, with my 'get' functions eg:
quote:
int getNumber()
{
return number;
}
...should I put the function like the one above, or should I do it like this:
quote:
void getNumber(int * returnNumber)
{
returnNumber= number;
}
Like my get functions would include things like LONGLONG, string, int, float, double, long.
Most of the microsft dx functions use the pointer way,... whats the difference. Like memory wise or something.
I actually prefer using ones where they return a value so i don't have to create a variable for the value to be entered in.
Thanks,
[edited by - johnnyBravo on April 21, 2004 4:43:24 AM]