+/EE312
software design
git clone https://git.julia.blue/+/EE312
0c27270
master
1#ifndef _Invent_h 2#define _Invent_h 1 3 4#include "MyString.h" 5 6typedef struct Customer { 7String name ; 8int bottles ; 9int diapers ; 10int rattles ; 11}Customer ; 12 13 14/* read a string from the input file. Creates a new string (you must call destroyString) */ 15void readString (String * ); 16 17/* read one number form the input file */ 18void readNum (int * ); 19 20/* For each of the following three functions, we have read one word 21* from the input file, either "Inventory" "Purchase" or "Summarize" 22* In each case, the function should read the remaining input from 23* the input file (using readString and readNum) and 24* process the command 25*/ 26void processInventory (void ); 27void processPurchase (void ); 28void processSummarize (void ); 29 30/* reset the database (inventory, customer info, etc). */ 31void reset (void ); 32 33#endif /* _Invent_h */