Posted By


PedjaCacic on 11/13/12

Tagged


Statistics


Viewed 445 times
Favorited by 0 user(s)

SP_zadatak1.cpp


/ Published in: C++
Save to your folder(s)

Main funkcija realizacije 1. zadatka.


Copy this code and paste it in your HTML
  1. #include "stdafx.h"
  2. #include "lista_polje.h"
  3. #include <iostream>
  4. #include <stdlib.h>
  5.  
  6.  
  7.  
  8. using namespace std;
  9.  
  10. int main(int argc, _TCHAR* argv[])
  11. {
  12. int izb;
  13.  
  14. do{
  15. cout<<"------------------------|Izbornik|-------------------------------"<<endl;
  16. cout<<"1. Dodavanje novog elementa."<<endl;
  17. cout<<"2. Ispis liste."<<endl;
  18. cout<<"3. Brisanje zeljenog elementa."<<endl;
  19. cout<<"4. Brisanje po kategoriji."<<endl;
  20. cout<<"5. Ispis svih zivotinja koje su dostavljene nakon 23. rujna 2012."<<endl;
  21. cout<<"9. Izlaz iz programa."<<endl;
  22. cout<<"----------------------------------------------------------------"<<endl;
  23. cin>>izb;
  24. switch (izb)
  25. {
  26. case 1:
  27. dodavanje();
  28. break;
  29. case 2:
  30. ispis();
  31. break;
  32. case 3:
  33. utoka();
  34. break;
  35. case 4:
  36. ak47();
  37. break;
  38. case 5:
  39. IspisDatum ();
  40. break;
  41.  
  42.  
  43. }
  44.  
  45. }while(izb!=9);
  46.  
  47. return 0;
  48. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.