#include "mydefs1.h" main() { int_stack s1, s2, s3; // default constructor used int i; s1.init(500); // forming an array of 500 ints s2.init(); // forming default array of 100 ints s3.init; // forming who knows what 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(); } /* 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Deleting stack of size 65814436 Deleting stack of size 100 Deleting stack of size 500 */