<h2>Hey mate </h2><h2>Here is ur answer..! ⬇️⬇️</h2>
Explanation:
<u>The characteristics of computers that have made them so powerful and universally useful are speed, accuracy, diligence, versatility and storage capacity. Let us discuss them briefly. Computers work at an incredible speed.</u>
<em><u>Hope</u></em><em><u> </u></em><em><u>it helps</u></em><em><u> </u></em><em><u>u plzz</u></em><em><u> </u></em><em><u>mark it</u></em><em><u> </u></em><em><u>as brainalist</u></em><em><u> </u></em><em><u>and thnk</u></em><em><u> </u></em><em><u>my answers</u></em><em><u> </u></em>
Answer:
A complex data type can be created by the use of class or structures.
#include <iostream>
using namespace std;
class complex{//creating a class complex to store a complex value.
public://defining all the values public.
int real;
int img;
complex(int real,int img)//parameterized constructor.
{
this->real=real;
this->img=img;
}
};
int main() {
complex n1(1,2);//n1 is a complex number with real part 1 and imaginary part 2.
cout<<n1.real<<" i"<<n1.img<<endl;
return 0;
}
Output
1 i2
Explanation:
I have created a class complex to store complex number with two integer parts real and imaginary.You can also declare them float if you wan to store decimal values and after that i have created a parameterized constructor with real and imaginary values.So we can assign the values at the time of declaration of the object of class complex.
It can pollute the whater which is the habit to many animals making it not safe fo be in the whater