00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #pragma once
00021
00022 #include <math.h>
00023 #include <float.h>
00024 #include <assert.h>
00025
00026 #include <iostream>
00027 #include <time.h>
00028
00029 using namespace std;
00030
00031
00032 #define PI 3.14159
00033 #define RADIUS 6378.2064
00034
00036 double toRadians(double d);
00037
00039 double toDegrees(double r);
00040
00044 double ieee_single(char *data2);
00045
00046
00047
00049 class TimeRemaining {
00050 private:
00052 int value;
00054 int display;
00056 int max;
00058 int wide;
00060 time_t start;
00061
00062 public:
00066 TimeRemaining(int _max, int _display);
00067
00069 void increment();
00070 };
00071