Вопрос по синтаксису Си++
int& - это какой тип переменной?
 D = int(x); - какое действие выполняет это?
D*=-1; - и вот это что такое?
//------------------------------------------------------------------------------
// DMS: Finds degrees, minutes and seconds of arc for a given angle 
// Input:
//   Dd        Angle in degrees in decimal representation
// Output:
//   D         Angular degrees
//   M         Minutes of arc
//   S         Seconds of arc
//------------------------------------------------------------------------------
void DMS (double Dd, int& D, int& M, double& S)
{
  //
  // Variables
  //
  double x;
  x = fabs(Dd);   D = int(x);
  x = (x-D)*60.0; M = int(x);  S = (x-M)*60.0;
  
  if (Dd<0.0) { if (D!=0) D*=-1; else if (M!=0) M*=-1; else S*=-1.0; }
}