/////// File: tstStack.C /////// #include #include "Stack.h" // stack of integers via // Stack class template static int a[] = {0,10,20,30,40,50}; int main() { Stack mystack(a[1]); mystack.push(a[3]); mystack.push(a[5]); int i; while ( mystack.pop(i) != -1 ) cout << i << " "; cout << endl; return(0); }