Of course, there are compiler errors because the function CallF1 must have a pointer to the class A. But I don't now how to realise this. Could anybody tell me how to do it?
What are you trying to achieve?
Maybe function objects (functors) are what you need? If so, take a closer look at Boost.
Anyway, I don't recommend this style of programming in C++ - it was not meant to be an object-functional language. Why not make this code purely structural, and then simply pass pointers to functions?
I can not make this code purely structural because that is a small piece of a big project. I only made a simple example to explain what I need. But you must be right. It is not good style of programming.