Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include "headerFile.h"
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main(){
  7.     cin >> a >> b;
  8.  
  9.     fooForDet(&a, &b);
  10.     cout << a << ' ' << b << '\n';
  11.  
  12.     cin >> a >> b;
  13.     fooForDet(a, b);
  14.  
  15.     cout << a << ' ' << b;
  16.  
  17.     double k;
  18.     cin >> k;
  19.     foo(&k);
  20.     cout << k << '\n';
  21.  
  22.     // by reference
  23.     cin >> k;
  24.     foo(k);
  25.     cout << k;
  26.  
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement