Home

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

previous
next

Re: /dev/null as a file-like object, or logging to nothing
ANN: Pyrex 0.9.6
Re: Question about properties.
Re: [pyconuk] pyweek is happening august 02 - august 09
Re: Development for dual core machine
Fundacja Sloneczko
Mam Marzenie
Nasze Dzieci
Fundacja Hobbit
Podaruj Zycie