Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualbluepig.man

Posted 26 November 2012 - 08:00 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?

#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?

PARTNERS