All pastes #72298 Raw Edit

Unnamed

public text v1 · immutable
#72298 ·published 2006-06-26 19:19 UTC
rendered paste body
typedef int element;

class nod{

   friend class stiva;

   private:

	element elem;
	nod* pred;

};

class stiva{
	private:
			nod* varf;
			int dim,n;

	public:
			stiva(){varf=0;dim=10;n=0;}
			stiva(int dim){this->dim=dim;varf=0;n=0;}
			int vida();
			element scoate();
			void adaug(element);
			int getdim();
			~stiva();
};