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();
write a programme that computes the price of shares and options. do the options in one-period binomial model.
C Program for SORTING OF LONG WORD WITH DIFFERENT STRING #include stdio.h> #include conio.h> #include string.h> void main() { char n[50],c[25][25]
how to write a c program for stone game
a) Define an Asset base class that provides the following method: class Asset { public: virtual double getValue()=0; }; This will be the base class for both stock an
Write a program to add co-ordinates of the plane The class having x and y co-ordinates. Create three objects. Use a constructor to pass one pair of co-ordinates and a funct
what do you mean by control word
Program is to check whether the string entered is a palindrome or not: Program is to check whether the string entered is a palindrome or not invoke function from main int p
Write a program IdentyfyWordsMain.java reading a file (like HistoryOfProgramming) and divide the text into a sequence of words (word=sequence of letters). Save the result in a new
Rules of function: Inline function created without prototype it reduces the memory and it is used only for small function. Inline function cannot have recursion, static var
Program for calculate average of total marks: #include using namespace std; void print(int marks_arr[],int cnt) { int ind[cnt]; int i=0; int j=0; int k=0;
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