home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
PROG_C
/
CL187A.ZIP
/
EXAMP204.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-15
|
657b
|
33 lines
// Container Lite (CL v 1.87a)
// (C) Copyright John Webster Small 1994
// All rights reserved
// examp204.cpp -- link with cl.obj
// #define CL_NO_TEMPLATES
#include "cl.h"
#if defined(CL_NO_TEMPLATES)
#define ITEM float
#define CL_WELL_ENDOWED
#define CL CL_float
#include "cl.hf"
#else
CL_WELL_ENDOWED(float)
#define CL_float CL<float>
#endif
#define floatFile "floats.tmp"
main()
{
CL_float cf(CL_ANDS,10);
for (float i = 1.0; cf.pushNew(&i); i++);
cf.save(floatFile);
cf.allClr();
cf.load(floatFile);
cout << "Count to 10: " << endl;
while (cf.unQDelAsg(&i))
cout << i << endl;
return 0;
}