Return

From Game Editor

Revision as of 10:28, 30 August 2008 by Asmodeus (Talk | contribs)
Jump to: navigation, search

Use the keyword return to return something in a function.

Here is an example, which returnes the two numbers added together:

int AddTogether(int a, int b)
{
  return a+b;
}