I want to create a function in a C++ class or in the files of the class, but I want it to take two objects as arguments, shush like:
float function (Object a, Object b){
return float;
};
But I don't want to write in the main program:
Object a;
Object b;
float c;
c = a.function (a, b);
I want to main program to look like this:
Object a;
Object b;
float c;
c = function (a, b);
So, where do I have to define this function?