order_by_int renamed to order_by_num + some experiments with lists
[svn/Cll1h/.git] / demos / lists / float-list-plain.c
diff --git a/demos/lists/float-list-plain.c b/demos/lists/float-list-plain.c
new file mode 100644 (file)
index 0000000..808303f
--- /dev/null
@@ -0,0 +1,29 @@
+#include "cll1.h"
+
+def_mem(Node)
+{
+ float f;
+ list(Node);
+};
+
+program
+{
+ Node one,all=NULL,last=NULL;
+ repeat(20)
+ {
+  one=get_mem(Node);
+  printf("Enter float: \n");
+  scanf("%f", &(one->f));
+  append(one,last);
+  if(not all)
+  {
+   all=last;
+  }
+ }
+ for_each(one,all)
+ {
+  printf("The float you entered is %f\n",one->f);
+ } 
+}
This page took 0.204768 seconds and 4 git commands to generate.