Posted By: Arrovs
Function pointer in struct with more argument types - 10/27/13 09:40
I ran into problem when i just cant think out that what im showing in example.
Example:
Possible i need to use other aproach, but its just example.
I really hope any can give good working one.
Example:
Code:
typedef struct { function test(); function test(int i); }Function_struct function main() { //all initialization //now adding function to pointer function_struct.test = some_function; //so how i can get it to recognize both argument types? //Like button click function can work with and without arguments }
Possible i need to use other aproach, but its just example.
I really hope any can give good working one.