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();
Important questions
I have a C++ programming assignment due on 8th January. As I am out of country and cannot complete it, I would like to know how much fees would you charge to complete the assignmen
padovan series with words
Project Description: My project is about telephone billing system. This project was my project in my college life. The project is quite easy, i needed C++ programming language..
Ask4. Write a query to display the columns listed below. The query should list each customer in which the video rental is overdue. The Days_Overdue column should calculate the numb
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 palindrome
Implement a Algorithm to verify if the link list is in Ascending order? A: template bool linklist::isAscending() const{ nodeptr ptr = head; while (ptr->_next)
Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b.
A: Use references when you can use, and use pointers when you have to. References are generally preferred over pointers whenever you don't require "reseating". Usually this mean
one of the segments is showing compilation error...
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