Hi, I need help with classes and operators. I'm trying to make a class that is used as a data structure because I need a variable that holds more decimal places than a double or a float. This structure is going to be multiplied in an equation later.
I know that I have to define what the multiplication operator does, and so I am supposed to overload the operator.
Let's call my data structure a "Fan".
I have:
1 2 3 4
fan operator * ()
{
return result;
}
I am completely lost on what else I'm supposed to put in this function.