Revision: 35955
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 15, 2010 10:39 by majbrlek
Initial Code
using namespace std; struct automobil{ int br; int god; char proizvodac[30]; char model[30]; }; typedef automobil elementtype; struct st { elementtype value; struct st *next; }; typedef struct st stack; typedef stack *element; elementtype TopS(stack *S){ element sljedeci = S->next; if (sljedeci==NULL) cout << "Stog je prazan.."; else return sljedeci->value; } void PushS(elementtype x, stack *S){ element novi = new stack; novi->value = x; novi->next = S->next; S->next = novi; } void PopS(stack *S){ element e = S->next; S->next = e->next; delete e; } void InitS(stack *S){ S->next = NULL; } bool IsEmptyS(stack *S){ if (S->next==NULL) return true; else return false; }
Initial URL
Initial Description
Initial Title
Zadatak 2-MBrlek-pokazivaci
Initial Tags
Initial Language
C++