I am trying to perform following operation,
ABC a1;
ABC a2=2+a1;
I have tried using overloading using friend function
ABC operator+(double h, ABC a){
return a+h; //consider this + to be overloaded
}
But it does not work. I don't know of any other way to do this, Please help!