i want to pass an object as an argument as follows.#include #include
using namespace std;
ostream & disp( ostream & output,myclass &obj)
output<<"Hello"<<endl;<br />output<<obj.m;<br />return output;
Above code does not run.
How to achieve above feature ?
plase help me. its urgent.