Revision: 35871
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 15, 2010 02:23 by epson121
Initial Code
#include <iostream> using namespace std; struct tautomobil{ int ser_broj; char proizvodac[40]; char model[40]; int god_proizvodnje; }; struct tautomobili{ tautomobil automobil; tautomobili *sljedeci; }; tautomobil TopS(tautomobili *stog){ return stog->sljedeci->automobil; } void PushS(tautomobil element, tautomobili *stog){ tautomobili *sljedeci; sljedeci=new tautomobili; sljedeci->automobil=element; sljedeci->sljedeci=stog->sljedeci; stog->sljedeci=sljedeci; } void PopS(tautomobili *stog){ tautomobili *sljedeci; sljedeci=stog->sljedeci; stog->sljedeci=sljedeci->sljedeci; delete(sljedeci); } void InitS(tautomobili *stog){ stog->sljedeci=NULL; } bool IsEmptyS(tautomobili *stog){ if(stog->sljedeci==NULL) return true; else return false; }
Initial URL
Initial Description
Initial Title
stog_pokazivaci.h
Initial Tags
header, c++
Initial Language
C++