#include "mydefs2.h" main() { int_stack s1, s2; int i; s1.init(500); s2.init(); for( i = 0; i < 20; i++ ) { s1.push(i); } for( i = 0; i < 20; i++ ) { cout << s1.pop() << ' '; } cout << endl; s2.push(10); i = s2.pop(); } /* Initialize with 500 Initialize with 100 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 */