Commit | Line | Data |
---|---|---|
ea514b9e | 1 | #include "cll1.h" |
2 | ||
3 | def_mem(Node) | |
4 | { | |
5 | float f; | |
6 | list(Node); | |
7 | }; | |
8 | ||
9 | program | |
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 | } |