|
-
Sep 23rd, 2002, 10:47 AM
#1
Thread Starter
Member
Complex Numbers Class?
hello everyone,
I have been working for my Data structures class for a week now and have been attempting to understand this whole complex numbers concept. My textbook has very little description on the operations for complex numbers, so I was hoping someone here would be better able to explain it to me. I am trying to write the code to overload the - symbol for a complex number for my complex class. I was struggling mostly with understanding how does one negate a complex number. Heres the basic outline for the code I have come up with. Any and all help would really be appreciated.
heres the definition within the class.
complex operator- () const;
//negation of a complex number
and my function implementation would be...
complex::complex operator-() const
{
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|