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