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();
Please give me a programming code of first & follow with c or c++ laqnguage .When anyone give me the programming code of first & follow please explain every lines with the help
When you are designing a generic class to have or otherwise manage objects of other types, when the format and behavior of those other types are unimportant to their containment or
Need help finishing my homework. It''s been 5 years since I''ve use C++. I am a VN.Net programmer. -Todd
Write a program to calculate the total resistance of a series or parallel circuit. The maximum number of resistors is two. We need to decide whether the user wants the to
I Want a answer for solving the big M method in the topic of simplex method...
Define the Increment and Decrement Operators in c language? C offers two special operators -and ++ called decrement and increment operators respectively and these are unary ope
the program that solve the efficiency of otto cycle
C Program for SORTING OF NUMBERS main() { int a[20],i,j,temp,n; clrscr(); printf("ENTER THE MAXIMUM LIMIT: "); scan
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
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
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