can anyone help me with this program
write in c++ a defintion of a complex class for complex numbers.Each object of this class will represent a complex number x+y*j storing the real part x and the imaginary part y as float in private section. Include a constructor, a destructor, access functions,assignemnt functions, a nom() functions that returns magnitude of the complex number, an isequal to (complex) function and arithmetic functions plus (complex),minus(complex), times(complex), divide by(complex) and print () function.
namour84 0 Newbie Poster
Recommended Answers
Jump to Post>>can anyone help me
Can we? Yes. Will we is another question. We are not going to do your homework for you. Use google and you will probably find what you are looking for (the code).
Jump to Posthttp://en.wikipedia.org/wiki/Complex_number
that's an explanation of the math involved. Now use the instructions provided as a guideline for the declarations of the class variables and methods, and translate the math into C++. Show …
All 7 Replies
daviddoria 334 Posting Virtuoso Featured Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
ArkM 1,090 Postaholic
namour84 0 Newbie Poster
Lerner 582 Nearly a Posting Maven
namour84 0 Newbie Poster
ArkM 1,090 Postaholic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.