the code i have so far is this #include <iostream> #include \"Complex.h\" using
ID: 656541 • Letter: T
Question
the code i have so far is this
#include <iostream>
#include "Complex.h"
using namespace std;
int main()
{
Complex c1(0,0);
Complex c2(1,2);
Complex c3(8,2);
Complex c4(5,-3);
cout << "c1: ";
c1.print();
cout << " c2: ";
c2.print();
cout << " c3: ";
c3.print();
cout << " c4: ";
c4.print();
x=y+z;
cout << " x = y+z" << endl;
x.print();
cout << " = ";
y.print();
cout << " + ";
z.print();
x=y-z;
cout << " x = y-z" << endl;
x.print();
cout << " = ";
y.print();
cout << " - ";
z.print();
cout << endl;
}
Explanation / Answer
#include #include #include #include class complex { int i,r; public: void read() { coutr; couti; } void display() { coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.