1234567891011121314151617181920212223242526 |
- #include <iostream>
- #include "coordin.h"
- using namespace std;
- int main()
- {
- rect rplace;
- polar pplace;
- cout << "Enter the x and y values: ";
- while (cin >> rplace.x >> rplace.y)
- {
- pplace = rect_to_polar(rplace);
- show_polar(pplace);
- cout << "Next two numbers (q to quit): ";
- }
- cout << "Bye!\n";
- return 0;
- }
|