Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. struct Barnat
  4. {
  5. char EmertimiArtikullit[50];
  6. int Sasia;
  7. int NrArtikullit;
  8. char Pershkrimi[300];
  9. }b;
  10. struct Barnatoret
  11. {
  12. char EmriBarnatores[50];
  13. int PikaShitjes;
  14. int NrFiskal;
  15. int NrTelefonit;
  16. char Lokacioni[50];
  17. Barnat barnat[50];
  18. int NrBarnave;
  19. void RegjistroBarnat(Barnat b)
  20. {
  21. cout << "Emertimi i Artikullit : ";
  22. cin >> b.EmertimiArtikullit;
  23. cout << "/nSasia : ";
  24. cin >> b.Sasia;
  25. cout << "/nNumri i Artikullit : ";
  26. cin >> b.NrArtikullit;
  27. cout << "/nPershkrimi : ";
  28. cin >> b.Pershkrimi;
  29. }
  30. };
  31. enum OrariIPunes
  32. {
  33. Paradite,
  34. Pasdite
  35. };
  36. int main()
  37. {
  38. Barnatoret Barnatore;
  39. OrariIPunes Orari;
  40.  
  41. int n;
  42. int i;
  43. cout << "Sa Barnatore deshironi ti regjistroni : ";
  44. cin >> n;
  45. char t[] = "-----------------------------------------------------------------------\n";
  46. char d[] = "***********************************************************************\n";
  47. char koha;
  48. cout << d;
  49. cout << " Te dhenat per Barnatore \n";
  50. cout << d;
  51. for (i = 0; i < n; i++)
  52. {
  53.  
  54. cout << "Emri i Barnatores : ";
  55. cin >> Barnatore.EmriBarnatores;
  56. cout << "Pika e Shitjes : ";
  57. cin >> Barnatore.PikaShitjes;
  58. cout << "Numri Fiskal :";
  59. cin >> Barnatore.NrFiskal;
  60. cout << "Numri i Telefonit : ";
  61. cin >> Barnatore.NrTelefonit;
  62. cout << "Lokacioni : ";
  63. cin >> Barnatore.Lokacioni;
  64. cout << "Orari Paradite apo Pasdite : ";
  65. cin >> koha;
  66. }
  67. cout << d;
  68. cout << " Regjistro Barerat \n ";
  69. cout << d;
  70. Barnatore.RegjistroBarnat(b);
  71.  
  72.  
  73. cout << endl;
  74. system("pause");
  75. return 0;
  76. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement