Advertisement
limun11

Untitled

Jul 9th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. #include <iostream>
  2. #include "Faktura.h"
  3. #include "StoreAppUI.h"
  4. using namespace  std;
  5.  
  6.  
  7.  
  8.  
  9. void main()
  10. {
  11.     int unos;
  12.     do
  13.     {
  14.         cout << "1. OPEN STORE FROM FILE" << endl;
  15.         cout << "2. NEW STORE" << endl;
  16.         cout << "3. SAVE CHANGES TO FILE [" << fileName<<"]" << endl;
  17.         cout << "4. DODAJ: GRAD" << endl;
  18.         cout << "5. DODAJ: KLIJENT" << endl;
  19.         cout << "6. DODAJ: PROIZVOD" << endl;
  20.         cout << "7. DODAJ: PRODAJA (FAKTURA)" << endl;
  21.         cout << "8. TEST APP" << endl;
  22.         cout << "0. EXIT" << endl;
  23.  
  24.         cin >> unos;
  25.         if (unos == 1) m_file_open();
  26.         if (unos == 2) m_store_new();
  27.         if (unos == 3) m_file_save();
  28.         if (unos == 4) m_grad_add();
  29.         if (unos == 5) m_klijent_add();
  30.         if (unos == 6) m_proizvod_add();
  31.         if (unos == 7) m_prodaja_add();
  32.         if (unos == 8) m_test_app();
  33.     } while (unos != 0);
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement