Advertisement
STANAANDREY

func param

Dec 20th, 2019
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void funct( void (*paramfunct)()) {
  5.  
  6. paramfunct();
  7.  
  8. }
  9.  
  10. void funct2() {
  11.     cout << 12345;
  12. }
  13.  
  14. int main()
  15. {
  16.     funct(funct2);
  17.    
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement