matth@mars.njit.edu (Matthew Harelick) (06/25/91)
Hello,
I have a c++ question.
I want to create an object which refers to functions by address.
For instance, it will start with a structure:
struct fobj {
int quant;
int cquant;
int *f();
int num;
int *qr;
}
How do I fit this structure into a class?
The closest I can image is something like this:
class functpoint {
struct fobj *fpt;
functpoint(int);
~functpoint() { };
public:
functpoint(int num)
{
fpt = new struct fobj[num];
-----------------------------------------------------------------------
How do I assign a group of different functions to fpt?
What would the scope of such functions be?
Matt