You have shown us all the pieces that you think are correct. Perhaps the error is elsewhere? Can we see your whole ComplexNumber.h and ComplexNumber.cpp?
Disch++, even though he's not an L-value. This code looks fine. Maybe you set a breakpoint at that point and forgot about it? I dunno, just throwing stuff out there.
Albatross.... thank you for mentioning that. I'm usually use to working in "gedit" on Fedora but since I'm just learning classes I figured I'd go with Visual Studios for now (for debugging reasons).
With that said, apparently I did set a breakpoint trying to figure out how to get the line numbers to come up. I had not clue there was a such thing as a breakpoint. I just thought that the red dot meant that there was some sort of an error there.
Anyways... I'm a little embarrassed that I had to publicly go through this so I'm just going to shut up and keep on working. Thanks guys.
It was when I was beginning programming. I didn't have to go public about it, but I once set a breakpoint and my program kept stopping at that point. I did it to keep the console from closing on me when the program was done. However, I eventually worked out a way around this (cin.ignore()). Needless to say, after putting that in it took me a few minutes before I figured out why my program was stopping twice.