Could you tell me how I can deal with this problem when I currently need to make an assignment of some function pointers as shown below ?
If I take out --thow Account--, things are just fine, no compilers' errors show up, but still I don't know if there is any another way for me to work around that...Some advice from you is really needed...Code:class Account{ private: string name; long code; int hoursOfWork; double baseSalary; public: //Some functions to handle these private members }; void (*funci)()throw Account; //this function does the throwing job void (*funco)(); void (*funcp)(); void funcCompatre{ funcp=funco; funco=funci; //some other assignments }
Thank you.




Reply With Quote