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!
Convert coordinate:
class rect{
private :
float x,y;
public :
void input()
{
cout <<"enter rect coords\n";
cin >> x>> y>>"\n";
}
void output()
cout << x<<"\n" << y;
rect ()//dummy consructor
rect (float a,float b)//constructor
x=a;
y=b;
}; //end of class
class polar {
float r,q;
cout <<"enter polar coords\n";
cin>>r>>q;
cout << r< } operator rect(); };//end of class polar :: operator rect() { float a=r*cos(22*q/(7*180)); float b=r*sin(22*q/(7*180)); return rect(a,b);//calling constructor inbuild that it will //return rect type } void main() { rect a; polar p; clrscr(); p.input(); a=p; a.output(); getch(); }
} operator rect(); };//end of class polar :: operator rect() { float a=r*cos(22*q/(7*180)); float b=r*sin(22*q/(7*180)); return rect(a,b);//calling constructor inbuild that it will //return rect type } void main() { rect a; polar p; clrscr(); p.input(); a=p; a.output(); getch(); }
operator rect();
};//end of class
polar :: operator rect()
float a=r*cos(22*q/(7*180));
float b=r*sin(22*q/(7*180));
return rect(a,b);//calling constructor inbuild that it will
//return rect type
void main()
rect a;
polar p;
clrscr();
p.input();
a=p;
a.output();
getch();
Program1: Write a program to find the factorial of a given number. The input is user given. Final output is printed out on to the screen. Program2: Write a program to gene
Introduction. In this assignment you are required to revisit the Assignment 1 topic. You will develop a new program which is more sophisticated, in particular, adding more functio
We have used logic symbols in the past, but not really though about the actual real devices. Semiconductor companies have taken the logic symbols are manufactured them into logic f
write a program to find the area under the curve y=f(x) between x=a and x=b integrate y=f(x) #include float start_point, /* GLOBAL VARIABLES */
create algorithm for doubly link list using c data structure
Compiler Design - Limit In The Method Instructions
write a c program to solve exanple of lamis therom
Should I explicitly call a destructor on a local variable? Explain it.
The Special Pointer 'this' When various instances of a class come into existence, it naturally follows that each instance has its own copy of member variables. If this were not
#A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrom
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: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd