Can anyone tell how to call a class function from a switch statement
example
number number::operator+(number)
{
inputs
}
switch (option)
{
case 1:
number number::operator+(number);
break;
IS THAT THE CORRECT WAY TO CALL THE ABOVE FUNCTION?