Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. void f1(int a){
  6. cout << "chlen " << a << " sm";
  7. }
  8.  
  9. void f2(int a, int chlen, void (*f1)(int)){
  10. cout << "mne " << a << " let" << endl;
  11. cout << "i moi ";
  12. f1(chlen);
  13. }
  14.  
  15.  
  16. int main(){
  17. f2(22, 20, f1);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement