/* File: proj3.h This file contains the type definitions and function prototypes for project 3. */ #include "genlib.h" /* Define the type fraction as a structure */ typedef struct { int top ; int bottom ; } fraction ; /* Some functions to work with fractions */ /* Function Prototype for fractions */ /* Read Project 3 handout for a description of each function */ int Numerator(fraction f) ; int Denominator(fraction f) ; fraction MakeFraction(int numerator, int denominator) ; void PrintFraction (fraction f) ; fraction ReduceFraction (fraction f) ; fraction AddFraction (fraction f1, fraction f2) ; fraction SubtractFraction (fraction f1, fraction f2) ; fraction MultiplyFraction (fraction f1, fraction f2) ; fraction DivideFraction(fraction f1, fraction f2) ; bool EqualFraction(fraction f1, fraction f2) ; bool LessThanFraction(fraction f1, fraction f2) ;