Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!seismo!dimacs.rutgers.edu!aramis.rutgers.edu!paul.rutgers.edu!njin!njitgw.njit.edu!mars.njit.edu!matth From: matth@mars.njit.edu (Matthew Harelick) Newsgroups: comp.lang.c++ Subject: c++ programming question Message-ID: <1991Jun25.163524.8326@njitgw.njit.edu> Date: 25 Jun 91 16:35:24 GMT Sender: news@njit.edu Organization: New Jersey Institute of Technology Lines: 40 Nntp-Posting-Host: mars.njit.edu 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