home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Liren Large Software Subsidy 7
/
07.iso
/
c
/
c081_11
/
6.ddi
/
EXAMPLES.ZIP
/
EX7.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1991-02-13
|
309 b
|
19 lines
// Borland C++ - (C) Copyright 1991 by Borland International
// ex7.cpp: Using the List class
// from Getting Started
#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();
}