Re: [Audyssey] Return function explain

2010-03-24 Thread Thomas Ward
Hi Dark, Actually, this is quite simple. If you need to get the value stored in a function and pass it to a variable your function must return a value. However, you need to remember to set the functions return tuype to the ttype of value you are returning. In your sample code you have declared

Re: [Audyssey] Return function explain

2010-03-24 Thread Philip Bennefall
Hi Dark, The void main function here should indeed be void, but it is the second function that we must look at. the add_numbers function returns an int, and takes two arguments; two ints in this case and adds them together, returning the result. first and second are simply variable names