home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD2.mdf
/
c
/
tcpp
/
examples
/
ex8.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
|
1990-06-10
|
243 b
|
17 lines
// ex8.cpp: Benutzt die Klasse Stack
// aus Kapitel 6 der Einführung
#include "stack.h"
main()
{
Stack s(5);
int i = 0;
// Zahlen zwischen 1 und 5 eintragen
while (s.push(i+1) == 0)
++i;
s.print();
}