#ifndef STACK_INTH #define STACK_INTH #include //for size_t class stack_int { public: typedef int value_type; private: static const size_t max_size = 100; value_type a[max_size]; size_t n; //stack pointer: subscript of next free element public: stack_int(): n(0) {} ~stack_int(); void push(value_type i); value_type pop(); friend bool operator==(const stack_int& s1, const stack_int& s2); }; inline bool operator!=(const stack_int& s1, const stack_int& s2) { return !(s1 == s2); //return !operator==(s1, s2); } #endif