aboutsummaryrefslogtreecommitdiffstats
path: root/include/structs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/structs.h')
-rw-r--r--include/structs.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/structs.h b/include/structs.h
new file mode 100644
index 0000000..cb1bca9
--- /dev/null
+++ b/include/structs.h
@@ -0,0 +1,20 @@
+#ifndef _STRUCTS_H
+#define _STRUCTS_H
+struct item {
+ double p;
+ double w;
+};
+
+struct data {
+ long int N;
+ struct item * items;
+ double allp;
+ double allw;
+};
+
+struct front_item {
+ struct item i;
+ struct front_item * next;
+ struct front_item * prev;
+};
+#endif