/*************************************************************************** main.cpp - description ------------------- begin : mar mag 6 17:50:06 CEST 2008 copyright : (C) 2008 by Gabriele Di Stefano email : gabriele@ing.univaq.it ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifdef HAVE_CONFIG_H #include #endif #include #include "stack.h" using namespace std; int main(int argc, char *argv[]) { Stack pila; for (int i =0; i<10; ++i) //inserimento dati nella pila pila.push(i); for (int i=0; i <11; ++i) //errore! 11 pop() { try{ cout <<"Top: "<