#include #include #include "obj.h" using namespace std; void f(obj copy); int main() { obj ob = 10; cout << "about to call f\n"; f(ob); cout << "just returned from f\n"; return EXIT_SUCCESS; } void f(obj copy) { cout << "start of f\n"; copy.print(); //just to make sure that f received the obj cout << "\n"; cout << "end of f\n"; }