Guest User

Untitled

a guest
Feb 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. void test(int a)
  4. {
  5. std::cout << a;
  6. }
  7.  
  8. void callbackFunction(void(*cal)(int))
  9. {
  10. cal(5);
  11. }
  12.  
  13. int main()
  14. {
  15. callbackFunction(test);
  16.  
  17. system("pause");
  18. return 0;
  19. }
Add Comment
Please, Sign In to add comment