home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
CL187A.ZIP
/
EXAMP206.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-15
|
374b
|
19 lines
// examp206.cpp -- link with cl.obj
#include "cl.h"
main()
{
cl s;
s.ins("in typeless containers!");
s.ins("Heterogenous data");
s.ins("can be easily bound");
// s.CurNode() == 2
s.insNew("This string won't appear!");
s.sort(CLcmPcast(strcmp,void));
// s.CurNode() == CL_NOTFOUND != 0
while (++s)
cout << (char *)s.get() << endl;
return 0;
}