Website Summary Files Commits Branches @commit @diff @stats
path: root / Week02 / Exercise04 / product.h
diff options
context:
space:
mode:
1 files changed, 12 insertions, 0 deletions
-rw-r--r--Week02/Exercise04/product.h12
diff --git a/Week02/Exercise04/product.h b/Week02/Exercise04/product.h
new file mode 100644
index 0000000..e83e5ee
--- /dev/null
+++ b/Week02/Exercise04/product.h
@@ -0,0 +1,12 @@
+#ifndef _PRODUCT
+#define _PRODUCT
+
+static const unsigned MAX_NAME_LENGTH = 256;
+
+struct Product {
+ unsigned ID;
+ char name[MAX_NAME_LENGTH];
+ unsigned stockSize;
+};
+
+#endif