What I want to do is pass a function to a function. The function that is to receive a function is a recursive function. It is to call the passed function. I have a short (one page) example of this in my book but that is it and I can't get the compiler to accept the code.
The error is stating of a mismatch between the formal and actual parameters, error converting from " void (Node &) to Vode (_cdecl *)(Node *) " The prototypes are void PrintNodeData(Node *sentNode); and int RecursiveDataPrint(Node* sentPtr,void(*sent)(Node *));. I then call with this line RecursiveDataPrint(Root,PrintNodeData); The error is with parameter 2. I don't know what the compiler is saying when it has "(_cdecl *)".