I have modified the code as given below. Now the assignment of base class member function pointer is OK. Now I have an another problem in calling the function. it gives compilation error as "error C2065: 'fnptr' : undeclared identifier" Is it possible to call like that? Or is it a syntax error?
void ( Base :: *fnptr)(void) ;
fnptr = &Base::myvurtualfn;
class Derived:public Base
fnptr = &Base :: myvurtualfn;
void myoldfn(Base &b)
(b.*fnptr)();//error C2065: 'fnptr' : undeclared identifier
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...
Help! I want to create a java program that finds the highest even integer among the values entered by the user. Stop asking values when a value less than 1 have been entered. If no even integer is entered, display "No Even Integer"