#include <iostream> #include "stack.h" #include "date.h" using namespace std; int main() { stack<int> d1( 10 ); d1.push( 3 ); d1.push( 4 ); d1.push( 5 ); cout << d1 << endl; date d; stack<date> d2( 5 ); d2.push( date( 2012, 4, 22 ) ); d2.push( d ); stack<bool> d3( 2000 ); //... cout << d1 << endl; cout << d2 << endl; cout << d3 << endl; return 0; }