Re: Lots of design issues needed.

From: Val (valmont_programming_at_hotmail.com)
Date: 08/12/04


Date: Thu, 12 Aug 2004 18:53:59 +0200

I give up.
I don't know how to remove the duplicates in void PhoneBkEng::Execute(const int input) neatly.
I tried everything with function pointers but I can't do it.
Can anyone show me?



Relevant Pages

  • Re: easy pointers to functions problem
    ... I am trying to get an idea of how function pointers work. ... I.e. you cannot pass a function pointer as a void* parameter. ... int main{ ... It is this that is correct, so change your earlier prototype to match. ...
    (comp.lang.c)
  • Re: Global restricted function pointer
    ... But is that defined in C89? ... could safely convert function pointers from one function pointer to ... pointer to void * and back. ... typedef void; ...
    (comp.lang.c)
  • Re: Richard heathfields casting operation
    ... function pointers to void pointers will break. ... void* and function pointers are both 8 bytes on Linux/IA-64. ... printf = 0x2000000000039608 ... Looking for software development work in the San Diego area. ...
    (comp.lang.c)
  • Re: typecasting of function pointers
    ... void foo; ... fptr = bar; ... I was just pointing out a couple of the simplest to implement which don't rely on doing odd stuff with function pointers, ...
    (comp.lang.c)
  • library design
    ... In C++ I would propably create an abstract base class ... virtual void fb_1= 0; ... A direct translation to C could be a struct B holding function pointers, ...
    (comp.lang.c)