Revision: 53688
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 1, 2011 04:33 by fkuster
Initial Code
struct pacijent { int prior, x, y; }; struct qu { pacijent el; qu *next; }; struct que { qu *front, *rear; }; que red; pacijent FrontQ (que red_atp) { return ((red_atp.front)->next)->el;; } void EnQueueQ (pacijent pac, que &red_atp) { qu *novi=new qu; novi->el=pac; novi->next=NULL; (red_atp.rear)->next=novi; red_atp.rear=novi; } void DeQueueQ (que &red_atp) { qu *brisi=red_atp.front; red_atp.front=(red_atp.front)->next; delete brisi; } bool IsEmptyQ (que red_atp) { if (red_atp.rear==red_atp.front) return true; return false; } void InitQ (que &red_atp) { qu *novi=new qu; novi->next=NULL; red.rear=novi; red.front=novi; }
Initial URL
Initial Description
Zaglavlje za program.
Initial Title
red_pokazivac.h
Initial Tags
Initial Language
C++