 Define a class complex to represent complex number. The class should have constructor with 2 default parameters. More info in | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

 Define a class complex to represent complex number. The class should have constructor with 2 default parameters. More info in

Define a class complex to represent complex number. The class should have constructor with 2 default parameters. Create member function setcomplex( ), getcomplex( ) and display( ) and also operator functions to overload +, -, *, / for carrying out operation with complex number. plz help guys I want answer this I want submit this

22nd Jan 2018, 6:36 AM
kalpesh Dharpure
kalpesh Dharpure - avatar
9 Answers
+ 18
give it a try by yourself first , its too simple to perform such operations if u separate the real & imaginary part , then perform operations & adding again , for multiplication also u can form a general formula & then by using real,imaginary part get the answer //best of luck 👍 //for advance operations on a single complex number , u can ask me on my code
22nd Jan 2018, 8:24 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 3
0 effort = 0 help
22nd Jan 2018, 8:28 AM
Jeremy
Jeremy - avatar
+ 2
we wont do your homework, show us what you got and with what you are struggeling
22nd Jan 2018, 8:21 AM
Jeremy
Jeremy - avatar
+ 2
do the c++ course of you dont know how to start
22nd Jan 2018, 8:24 AM
Jeremy
Jeremy - avatar
+ 2
I guess he’s done for☹️
24th Jan 2018, 4:22 PM
Logomonic Learning
Logomonic Learning - avatar
+ 1
I am fybca student I want this answer for homework plz help
22nd Jan 2018, 7:51 AM
kalpesh Dharpure
kalpesh Dharpure - avatar
0
I don't know how to do that plz slove this
22nd Jan 2018, 8:23 AM
kalpesh Dharpure
kalpesh Dharpure - avatar
0
plz help I don't know about complax number
22nd Jan 2018, 8:26 AM
kalpesh Dharpure
kalpesh Dharpure - avatar
0
plz I want to submit tommorow in clg (as journal) if I didn't submit ed I can't give practical exam
22nd Jan 2018, 8:29 AM
kalpesh Dharpure
kalpesh Dharpure - avatar