simple rational number calculator with cpp the valid equation is that does not have a brackets or a logical error