Question: Create a c++ program that reads a complete complex number input example 2+3i as a string and breaks them in three different datatypes. ex int
Create a c++ program that reads a complete complex number input example 2+3i as a string and breaks them in three different datatypes. ex int real =2; char sign ="+" ; and int imaginarypart = 3;
suggested methods
-friend function
- overloading cin and cout
- use of classes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
