#include #include "stack.h" using namespace std; int main(void) { for(int i = 0; i < 10000000; i++){ Stac st; // not Stac st() ! //Stac st(); // Stac st(50); // _sp is private so can't access: //st._sp = 1; st.push(5); st.push(10); double popped = st.pop(); cout << "popped: " << popped << endl; st.maxval(20); //st.maxval(); /* Stac st2(st); popped = st2.pop(); cout << "popped st2: " << popped << endl << endl; */ } return 0; }