/****************************************************************************** * Standard header file for all source components to Jeff Mercer's Biorhythm * final programming project. ******************************************************************************/ /* Header file includes */ #include #include #include /* Macro definitions */ #define TRUE 1 #define FALSE 0 /* Data type declarations */ typedef unsigned char Bool; typedef struct { int year; int month; int day;} Date; typedef struct { char firstname[]; char lastname[]; Date bdate; } Person; typedef struct { int phys; int emot; int intel; char p; char e; char i; } BioType; typedef struct { int pcom; int ecom; int icom; } CompatType; /* Function prototypes */ long MJulianDay(Date); void DayOfWeek(Date, char *); void ZSign(Date, char *); long DayDiff(Date, Date); BioType CalcBiorhythm(Date, Date); CompatType CalcCompat(Date, Date); void CompatLookup(CompatType, char *, char *, char *); void InterpBiorhythm(BioType, char *);