编译C++出现的错误
#ifndef COORDIN_H_#define COORDIN_H_struct polar{ double distance; double angle;};struct rect{ double x; double y;};polar rect_to_polar(rect xsypos);void show_polar(polar dapos);#endif#include"stdafx.h"#include<iostream>#include<cmath>#include"coordin.h"using namespace std;polar rect_to_polar(rect xypos){ polar answer; answer.distance = sqrt(xypos.x * xypos.x + xypos.y * xypos.y ); answer.angle = atan2(xypos.x,xypos.y); return answer;}void show_polar(polar dapos){ const double Rad_to_deg = 57.29577951; cout << "distance= " << dapos.distance; cout << ",angle= " << dapos.angle * Rad_to_deg; cout << "degree\n";}// Different.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>#include "coordin.h"using namespace std;int main(){ rect rplace; polar pplace; cout << "enter x and y" ; while(cin>>rplace.x>>rplace.y) { pplace = rect_to_polar(rplace); show_polar(pplace); cout << "enter next one(q to quit):"; } cout << "end\n"; return 0; system("pause");}