Revision: 35866
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 15, 2010 01:09 by DanijelTot
Initial Code
struct tstack { slot vrijednost; tstack *slje; }; void InitS(tstack *stog) { stog->slje=NULL; } void PushS(slot ulaz,tstack *stog) { tstack *pom; pom=new tstack; pom->vrijednost=ulaz; pom->slje=stog->slje; stog->slje=pom; } int IsEmptyS(tstack *stog) { if (stog->slje==NULL) return(0); else return(1); } slot TopS(tstack *stog) { if (stog->slje != NULL) return((*stog->slje).vrijednost); else exit(0); } void PopS(tstack *stog) { tstack *pom; pom=stog->slje; stog->slje=pom->slje; delete(pom); }
Initial URL
Initial Description
Initial Title
stog_pokazivac.h
Initial Tags
podataka
Initial Language
C++