Sample Header File
/* File: lucky.h * Author: Margot (mmckin1@umbc.edu) * Date: 20 February 2001 * SSN: None of Your Business! * Section: Mine * * This file contains the function prototypes for the following * functions: * GetValidBDay() * InValidDate() * SeedRand() * PrintNRandNums() * PrintGreeting() * These functions are generic functions which can be used to * do many things. See their descriptions below. * * This may or may not conform to your class coding standards. * See the main course webpage to be sure what those * standards are. */ /* Function: PrintGreeting() * * This function prints a little synopsis of the program * out to the screen for the user. */ void PrintGreeting (void); /* Function: GetValidBDay * * GetValidBDay gets a (hopefully) 6 digit number from * the user. This function calls InValidDate to be sure * that the date the user entered was correct and gets * a new number from them otherwise. */ int GetValidBDay (void); /* Function: InValidBDay * * InValidBDay is a predicate function which returns * true (1) if the date is not within the specified * limits and false (0) otherwise. */ int InValidDate(int date); /* Function: SeedRand * * This function seeds the random number generator with * the integer passed and returns nothing. */ void SeedRand (int seed); /* Function: PrintNRandNums * * This function prints the n (being the arguement passed) * random numbers to the screen in 5 beautiful columns. * If the user has chosen for either 0 or a negative * number of integers to be printed they are publicly * humiliated. */ void PrintNRandNums (int n);