/* these next two lines wrap the header file wrapping a header file is a good practice and prevents the file from being included too many times */ #ifndef LAB07_H #define LAB07_H // Name: // Class and Section: CS 54, Section // Date: 9 October, 2007 // Purpose: To define the structs and functions for the toxic cookies /* we include iostream and the namespace here now anything that includes lab06.h doesn't need to include this again */ #include using namespace std; /* structs */ struct cookie { double m_flour; /* in kg */ double m_sugar; /* in kg */ double m_butter; /* in kg */ int m_eggs; }; /* function prototypes */ double cookieHarm(cookie recipe); double cookieDays(cookie &recipe, double harmScore); /* this line ends the if that began on line 5 */ #endif