function returns

Oct 18, 2009 at 11:23am
Can you point me towards a tutorial on using function returns?
Thank you.
Oct 18, 2009 at 11:44am
Here is the tutorial on functions: http://www.cplusplus.com/doc/tutorial/functions/
Oct 18, 2009 at 11:45am
Do you mean a function that returns a value of its type. etc
1
2
3
4
int Add(int numOne, int numTwo)
{
    return numOne + numTwo;
}
Oct 18, 2009 at 1:02pm
Yeah, I wanna know how to use the returned value.

Thanks Bazzy, thats exactly what I needed.
Last edited on Oct 18, 2009 at 1:27pm
Topic archived. No new replies allowed.