Forum: C++ Dec 9th, 2007 |
| Replies: 2 Views: 419 Nah, because then you'd have to declare a complex object that will work with only one of the numerical datatypes. The complex number isn't supposed to be generic, the arithmetic is.
I had to make... |
Forum: C++ Dec 9th, 2007 |
| Replies: 2 Views: 419 I'm writing a simple complex number class in c++ and we're supposed to overload the four arithmetic operators to work on complex+-/*complex, complex+-*/double, and double+-*/complex.
This is... |