Skip to content

Instantly share code, notes, and snippets.

@yasuakiohama
Created November 22, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yasuakiohama/fefb89db5428222150eb to your computer and use it in GitHub Desktop.
Save yasuakiohama/fefb89db5428222150eb to your computer and use it in GitHub Desktop.
FunctionPointer.hpp
#ifndef FunctionPointer_hpp
#define FunctionPointer_hpp
#include <stdio.h>
class FunctionPointer
{
private:
void func1();
void func2();
void func3();
void SetFunc(void (FunctionPointer::*pFunc)());
public:
void run1();
void run2();
void (FunctionPointer::*m_pFunc)();
};
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment