⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wo.cpp

📁 VC各工程的源码集合
💻 CPP
字号:
#include <iostream>
#include "CoordCovert.h"

using namespace std;


void main()
{  
/*	cout<<a<<endl<<flattening<<endl<<endl<<endl;
	CRDGEODETIC geod;
	cin>>geod.latitude>>geod.longitude>>geod.height;
	cout<<endl;
	PCRDGEODETIC pgeod=&geod;

    PCRDCARTESIAN pcc;
	pcc=(PCRDCARTESIAN)malloc(sizeof(CRDCARTESIAN));
	GeodeticToCartesian (pcc, pgeod,a,flattening);

	cout<<pcc->x<<endl<<pcc->y<<endl<<pcc->z;
	cout<<endl<<endl<<endl;
    
	PCRDGEODETIC pp;
	pp=(PCRDGEODETIC)malloc(sizeof(CRDGEODETIC));

	CartesianToGeodetic (pp,pcc,a, flattening);

	cout<<pp->latitude<<endl<<pp->longitude<<endl<<pp->height;
	cout<<endl<<endl<<endl;

	free(pcc);
	free(pp);
	//大地坐标系《-----》笛卡尔坐标系
	*/
    
	PCRDTOPOCENTRIC pct;
	pct=(PCRDTOPOCENTRIC)malloc(sizeof(CRDTOPOCENTRIC));

	cin>>pct->northing>>pct->easting>>pct->upping;
	cout<<endl<<endl<<endl;

	PCRDTOPOCENTRICPOLAR pctp;
	pctp=(PCRDTOPOCENTRICPOLAR )malloc(sizeof(CRDTOPOCENTRICPOLAR ));
	TopocentricToTopocentricPolar (pctp,pct);

	cout<<pctp->range<<endl<<pctp->azimuth<<endl<<pctp->elevation;
	cout<<endl<<endl<<endl;

    PCRDTOPOCENTRIC pc;
	pc=(PCRDTOPOCENTRIC)malloc(sizeof(CRDTOPOCENTRIC));
	TopocentricPolarToTopocentric (pc,pctp);

	cout<<pc->northing<<endl<<pc->easting<<endl<<pc->upping;
	cout<<endl<<endl<<endl;
    //站心直角坐标系《-----》站心极坐标系

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -