본문 바로가기
Programming/C & C++

function pointer

by leanu 2011. 2. 15.
Declaration & Initialization

return-type (*function-pointer-name)(param1-type, param2-type, ...) = XXX

(ex1) General :  int (*fp)(double, double) = 0x00;
(ex2) Class Member function :  int (TmpClass::* fp2)(double, double) = 0x00;
(ex3) Class const Member function :  int (TmpClass::* fp3)(double, double) const = 0x00;


댓글