L have declare two function like this:
[source lang="cpp"]void order( void (*visit) (int,int) );void visit(int,int);[/source]
They are member function in the same class。
And l want call order like this:
[source lang="cpp"]oder(visit);[/source]
but it can't pass.
How can l do this?
Show differencesHistory of post edits
#1bluepig.man
Posted 26 November 2012 - 07:58 PM
L have declare two function like this:
[source lang="cpp"]void order( void (*visit) (int,int) );void visit(int,int);[/source]
They are member function in the same class。
And l want call order like this:
[source lang="cpp"]oder(visit);[/source]
but it can't pass.
How can l do this?
[source lang="cpp"]void order( void (*visit) (int,int) );void visit(int,int);[/source]
They are member function in the same class。
And l want call order like this:
[source lang="cpp"]oder(visit);[/source]
but it can't pass.
How can l do this?