I want to make a function in C++ where a class object will be used as argument. I tried but could not do this.
Plz. give suggestions.
have a look for example at TObject::IsEqual() at root.cern.ch/root/html/TObject#TObject:IsEqual. It gets a pointer to another object, and returns whether it and the other object are equal. You can call it like this:
printf("myObj and myObj are the same!\n");