Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- struct Barnat
- {
- char EmertimiArtikullit[50];
- int Sasia;
- int NrArtikullit;
- char Pershkrimi[300];
- }b;
- struct Barnatoret
- {
- char EmriBarnatores[50];
- int PikaShitjes;
- int NrFiskal;
- int NrTelefonit;
- char Lokacioni[50];
- Barnat barnat[50];
- int NrBarnave;
- void RegjistroBarnat(Barnat b)
- {
- cout << "Emertimi i Artikullit : ";
- cin >> b.EmertimiArtikullit;
- cout << "/nSasia : ";
- cin >> b.Sasia;
- cout << "/nNumri i Artikullit : ";
- cin >> b.NrArtikullit;
- cout << "/nPershkrimi : ";
- cin >> b.Pershkrimi;
- }
- };
- enum OrariIPunes
- {
- Paradite,
- Pasdite
- };
- int main()
- {
- Barnatoret Barnatore;
- OrariIPunes Orari;
- int n;
- int i;
- cout << "Sa Barnatore deshironi ti regjistroni : ";
- cin >> n;
- char t[] = "-----------------------------------------------------------------------\n";
- char d[] = "***********************************************************************\n";
- char koha;
- cout << d;
- cout << " Te dhenat per Barnatore \n";
- cout << d;
- for (i = 0; i < n; i++)
- {
- cout << "Emri i Barnatores : ";
- cin >> Barnatore.EmriBarnatores;
- cout << "Pika e Shitjes : ";
- cin >> Barnatore.PikaShitjes;
- cout << "Numri Fiskal :";
- cin >> Barnatore.NrFiskal;
- cout << "Numri i Telefonit : ";
- cin >> Barnatore.NrTelefonit;
- cout << "Lokacioni : ";
- cin >> Barnatore.Lokacioni;
- cout << "Orari Paradite apo Pasdite : ";
- cin >> koha;
- }
- cout << d;
- cout << " Regjistro Barerat \n ";
- cout << d;
- Barnatore.RegjistroBarnat(b);
- cout << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement