본문 바로가기

컴퓨터 과학 & 영상처리 관련/C / C++

함수포인터 typedef로 편하게

typedef void (*callback)();

 

void ma(callback f)

{

f();

}