#include #include #include "stack.h" #include "date.h" using namespace std; int main() { ::stack s1; s1.push(2.71); //e s1.push(3.14); //pi cout << s1.pop() << "\n"; cout << s1.pop() << "\n\n"; ::stack s2 = s1; //copy constructor if (s1 == s2) { //if (operator==(s1, s2)) { cout << "They are equal.\n"; } cout << "\n"; ::stack s3; date independence_day(date::july, 4, 1776); s3.push(independence_day); s3.push(date(date::october, 29, 1929)); s3.push(date(date::december, 7, 1941)); s3.push(date(date::july, 20, 1969)); s3.push(date(date::september, 11, 2001)); cout << s3.pop() << "\n"; cout << s3.pop() << "\n"; cout << s3.pop() << "\n"; cout << s3.pop() << "\n"; cout << s3.pop() << "\n"; return EXIT_SUCCESS; }