Guest User

Untitled

a guest
Aug 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. typedef void (*lulz)(int, int);
  4. void leave(int code, int x)
  5. {
  6. cout<<"Done"<<endl;
  7. exit(code);
  8. }
  9. void function(int i,int g)
  10. {
  11. lulz array[2] = {function, leave};
  12.  
  13. cout<<i<<endl;
  14. (*array[(i)/g])(++i,g);
  15. }
  16.  
  17. int main()
  18. {
  19. function(1,5);
  20. return 0;
  21. }
Add Comment
Please, Sign In to add comment