Revision: 36482
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 22, 2010 06:20 by marko90
Initial Code
struct kli_ban{ char ime_prez[25], vrs_tr; int god_ro, st_rc; }; struct re{ kli_ban klijent[5000]; int celo, dno; }; typedef struct kli_ban elem; typedef struct re red; int ADDONE (int x){ return ((x+1)%1000); } bool ISEMPTYQ(re *pok){ if (ADDONE(pok->dno)==pok->celo)return 1; else return 0; } elem FRONTQ(re *pok){ return pok->klijent[pok->celo]; } void ENQUEUEQ(elem a, re *pok){ pok->dno=ADDONE(pok->dno); pok->klijent[pok->dno]=a; } void DEQUEUEQ(re *pok){ pok->celo=ADDONE(pok->celo); } void INITQ(re *pok){ pok->dno=4999; pok->celo=0;}
Initial URL
Initial Description
Initial Title
Marko D - red_polje.hr
Initial Tags
podataka
Initial Language
C++