home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Devil's Doorknob BBS Capture (1996-2003)
/
devilsdoorknobbbscapture1996-2003.iso
/
Dloads
/
OTHERUTI
/
TCPP30-3.ZIP
/
EXAMPLES.ZIP
/
EX7.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-02-18
|
320b
|
20 lines
// Borland C++ - (C) Copyright 1991 by Borland International
// ex7.cpp: Using the List class
// from Hands-on C++
#include "list.h"
main()
{
List l(5);
int i = 0;
// Insert the numbers 1 through 5
while (l.put_elem(i+1,i) == 0)
++i;
l.setn(i);
l.print();
return 0;
}