// Example of using the GeographicLib::Constants class#include <iostream>#include <exception>#include <GeographicLib/Constants.hpp>usingnamespacestd;usingnamespaceGeographicLib;intmain(){try{cout<<"WGS84 parameters:\n"<<"a = "<<Constants::WGS84_a()<<" m\n"<<"f = 1/"<<1/Constants::WGS84_f()<<"\n";}catch(constexception&e){cerr<<"Caught exception: "<<e.what()<<"\n";return1;}}