order_by_int renamed to order_by_num + some experiments with lists
[svn/Cll1h/.git] / demos / lists / float-list-plain.c
CommitLineData
ea514b9e 1#include "cll1.h"
2
3def_mem(Node)
4{
5 float f;
6 list(Node);
7};
8
9program
10{
11 Node one,all=NULL,last=NULL;
12
13 repeat(20)
14 {
15 one=get_mem(Node);
16 printf("Enter float: \n");
17 scanf("%f", &(one->f));
18 append(one,last);
19 if(not all)
20 {
21 all=last;
22 }
23 }
24
25 for_each(one,all)
26 {
27 printf("The float you entered is %f\n",one->f);
28 }
29}
This page took 0.154674 seconds and 4 git commands to generate.