diff options
author | Pixel <> | 2001-02-28 11:40:25 +0000 |
---|---|---|
committer | Pixel <> | 2001-02-28 11:40:25 +0000 |
commit | 833d20a69fe17ab846c153e35230c66a41d8fca9 (patch) | |
tree | 180ba073e59fee8df22cb733be2eec4c452e1b85 /lib/SList.cc |
Premier jetstart
Diffstat (limited to 'lib/SList.cc')
-rw-r--r-- | lib/SList.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/SList.cc b/lib/SList.cc new file mode 100644 index 0000000..fef50e9 --- /dev/null +++ b/lib/SList.cc @@ -0,0 +1,11 @@ +#include <stdio.h> +#include "SList.h" + +Cell SList::Insert(Key_t IKey, Datas_t const &IDatas) +{ + CList *I = this, *x; + + for (x = Right; (x) && (x->Key <= IKey); x = x->Right) + I = x; + return (new CList(I, IDatas, IKey)); +} |