Guest User

Untitled

a guest
Jun 24th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. class WTFhysics{
  2. private:
  3. int type;
  4. void _func1();
  5. void _func2();
  6.  
  7. void (*_f)();
  8.  
  9. public:
  10. WTFhysics(int t) : type(t) {
  11. _f = (type == 1 ? _func1 : _func2);
  12. };
  13.  
  14. void func(){
  15. _f();
  16. };
  17. };
Add Comment
Please, Sign In to add comment