12.07.2015 Views

Programski jezik C - Pmf

Programski jezik C - Pmf

Programski jezik C - Pmf

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

208 POGLAVLJE 12. STRUKTUREprintf("\n OPERACIJE : ");printf("\n =========");printf("\n 1. Unos novog elemeta ");printf("\n 2. Ispis liste ");printf("\n 3. Pretrazivanje liste ");printf("\n 4. Brisanje iz liste ");printf("\n 5. Izlaz ");printf("\n izbor = ");}scanf("%d",&izbor);return izbor;i dajemo glavni program:int main(void) {int izbor;do {switch(izbor=menu()) {case 1:unos();break;case 2:ispis();break;case 3:trazi();break;case 4:brisi();break;case 5:break;default:printf("\n Pogresan izbor.");}} while(izbor != 5);return 0;}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!