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!
Overloading Binary Operators
class SI
{float i,p,n,r,a;
public:
SI(){};
SI(int gp,int gn, int gr);
void putdata(void);
SI operator+(SI);
};
SI SI::operator+(SI i1)
{SI i2; i2.p=p+i1.p; i2.i=i+i1.i; i2.a=a+i1.a; return i2;
}
void SI::putdata(void)
{cout<<"Principle is: "<
cout<<"Interest is "<
cout<<"Amount is "< } SI::SI(int gp,int gn, int gr) {p=gp;n=gn;r=gr; i=(p*n*r)/100; a=p+i; } int main() { SI i1,i2,i3; i1=SI(1000,2,10); i1.putdata(); cout< return 0; }
SI::SI(int gp,int gn, int gr)
{p=gp;n=gn;r=gr; i=(p*n*r)/100; a=p+i;
int main()
{ SI i1,i2,i3;
i1=SI(1000,2,10); i1.putdata(); cout< return 0; }
return 0;
Damjibhai and Shamjibhai are two jeweler friends. They decide to play a simple game. The game comprises of removing the jewels for polishing, turn by turn. Once a jewel is removed
please provide me the assignment help. What is the difference between a copy constructor and an overloaded assignment operator?
Dereferencing the Pointer this Sometimes a member function requires to make a copy of the invoking instance so that it can change the copy without affecting the original instan
Objective of this Program: (a) To learn more about modularization of a program into independent modules, (b) To use arrays in a program, (c) To get some experience with us
Define the Volatile Keyword Qualifiers in C Language? The volatile keyword proceed as a data type qualifier and a volatile variable is for dynamic use. E.G. for data that is to
write a c program to compute a padovan string
Ask question #Minimum 100Problem : Compiler Design - Limit the methods Rahul is a newbie to the programming and while learning the programming language he came to know the followi
answer for this program
Question: (a) (i) Explain how class members can be accessed when using objects of the class. Use a suitable example to illustrate your answer. (ii) Explain how the privat
5 questions. plus i will provide the "vector.h" for the questions that needs it
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