cheesiong@gmail.com wrote:
> 1. Can I declare some of template functions into a class? a concrete
> class, not the template class.
Yes, you should be able to.
> 2. How do I do the function pointer in C++?
You don't "do" a function pointer. You can declare it, like this:
void (*functionpointer)(int, double);
'functionpointer' is a pointer to a function that takes two arguments
and returns nothing.
> Since that function
> pointer is able to aceess any the functions inside any class.
Pointers to non-static member functions are not compatible with plain
pointers to functions. What book on C++ are you reading that does not
explain those concepts?
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask