order_by_int renamed to order_by_num + some experiments with lists
[svn/Cll1h/.git] / demos / lists / float-list-ordered.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;
12
13 repeat(20)
14 {
15 one=get_mem(Node);
16 printf("Enter float: \n");
17 scanf("%f", &(one->f));
18 insert(one,all,order_by_num,f);
19 }
20
21 for_each(one,all)
22 {
23 printf("The float you entered is %f\n",one->f);
24 }
25}
This page took 0.168987 seconds and 4 git commands to generate.