+/EE312

software design

git clone https://git.julia.blue/+/EE312

Joseph RyanProject 40c27270

master
845 B33 linesraw
1#ifndef _Invent_h
2#define _Invent_h 1
3
4#include "MyString.h"
5
6typedef struct Customer {
7	String name;
8	int bottles;
9	int diapers;
10	int 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 */