Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include "iostream"
  2.  
  3. using namespace std;
  4.  
  5. void func1()
  6. {
  7.     cout << "func1 //" << endl;
  8. }
  9.  
  10. void func2()
  11. {
  12.     cout << "func2 //" << endl;
  13. }
  14.  
  15. void main()
  16. {
  17.     void (*funcPointer)();
  18.     funcPointer = func1;
  19.     funcPointer();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement