Revision: 35899
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 15, 2010 04:06 by returic
Initial Code
struct tauta { int serijski_broj,godina; char proizvodac [40], model[20]; }; typedef tauta element; struct tstog{ element A[1000]; int vrh; }; int b = 1000; typedef struct tstog stog; int IsEmptyS(stog *S){ if(S->vrh == b - 1) return 1; else return 0; }; element TopS(stog *S){ if (!(S->vrh == b-1)) return S->A[S->vrh+1]; else exit(1); }; void PushS(element x, stog *S){ S->A[S->vrh] = x; S->vrh--; }; void PopS(stog *S){ if(!(S->vrh== b-1)) S->vrh++; else return; }; stog *InitS(){ stog *S = new stog; S->vrh = b-1; return S; };
Initial URL
Initial Description
Initial Title
Zaglavlje za simulaciju (stog_polje.h)
Initial Tags
Initial Language
C++