Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Define a complex number in c program:
class complex
{
private:
int real,ima;
public :
void input();
friend complex sum(complex,complex);
void show();
};
void complex:: show(void)
cout << "real part ="<< real << "\nThe imaginary part ="< } void complex ::input() { cout<<"enter the real and imaginary part\n"; cin >> real >> ima; } complex sum( complex a,complex b) { complex c; c.real= a.real + b.real; c.ima= a.ima + b.ima; return c; } void main() { complex a,b,c; clrscr(); a.input(); b.input(); c=sum(a,b); c.show(); getch(); }
}
void complex ::input()
cout<<"enter the real and imaginary part\n";
cin >> real >> ima;
complex sum( complex a,complex b)
complex c;
c.real= a.real + b.real;
c.ima= a.ima + b.ima;
return c;
void main()
complex a,b,c;
clrscr();
a.input();
b.input();
c=sum(a,b);
c.show();
getch();
Explain the Symbolic Constants in c language? Symbolic constants are the constants of any type that declared by using the #define compiler directive and it is a preprocessor di
Ravi is a newbie to the programming and while learning the programming language he came to know the following rules:
write a class player that contain attributes for the player,s name,average and team
Write the statements which are used to connect PHP with MySQL? Statements which can be used to connect PHP with MySQL is: $conn = mysql_connect('localhost'); echo $co
Q. Explain that how do we implement two stacks in one array A[1..n] in such a way that neither the stack overflows unless the total number of elements in both stacks together is n.
Should you employ this pointer in the constructor?
Can I free() pointers allocated along with new? Can I delete pointers allocated along with malloc()? A: No. It is completely legal, moral, and wholesome to employ malloc() a
write a C program for padovan string for a natural number
Classify computer system according to capacity. How they are different from computers according to the classification of technology. Provide comparative study also.
progarm in c for area under curve #include float start_point, /* GLOBAL VARIABLES */ end_point, total_area; int numtraps;
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd