Website Summary Files Commits Branches @commit @diff @stats
path: root / Week02 / Exercise05 / warehouse.h
diff options
context:
space:
mode:
1 files changed, 15 insertions, 0 deletions
-rw-r--r--Week02/Exercise05/warehouse.h15
diff --git a/Week02/Exercise05/warehouse.h b/Week02/Exercise05/warehouse.h
new file mode 100644
index 0000000..34f19b4
--- /dev/null
+++ b/Week02/Exercise05/warehouse.h
@@ -0,0 +1,15 @@
+#ifndef _WAREHOUSE
+#define _WAREHOUSE
+
+#include "package.h"
+
+struct Warehouse {
+ char ID;
+ Package* packages;
+ unsigned storedPackages;
+ unsigned packageCapacity;
+
+ bool storePackage(const Package& p);
+};
+
+#endif