Optional Parameters
#1

How to make function with optional parameter? Like this:
Code:
forward Func(param, const text[] = "");
public Func(param, const text[] = "")
{
// code here
return 1;
}
How to make that parameter text[] would be optional? If i don't write anything there, then it would be just "" ?
Reply


Messages In This Thread
Optional Parameters - by Dreftas - 11.10.2009, 11:11
Re: Optional Parameters - by Nero_3D - 11.10.2009, 11:34

Forum Jump:


Users browsing this thread: 1 Guest(s)