Hello, just wondering how to have an array of functions.
You see, i have at the moment:
but it would be nicer to make it:Code:string ret; switch (some_var) case 1: ret = some_function1(true); break; case 2: ret = some_function2(false); break; ....
now, the bool_input array is easy, just have = { true, false...}Code:ret = func_array[some_var](bool_input[some_var]);
but how do i get the array of funcitons to work?





Reply With Quote