Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #define MAX 50
  4.  
  5. int i
  6.  
  7.  
  8. void dimlav(){
  9. do{
  10. cout << "Inserire numero di clienti (MAX 50): "<< endl;
  11. cin >> dimlav;
  12. system("cls");
  13. }while(dimlav<1 or dimlav>MAX);
  14. }
  15.  
  16. void input(string cognome[], string nome[], int eta[],int trattamento[])
  17. {
  18.  
  19. for(i=0;i<dimlav;i++)
  20. {
  21. cout<<"Cognome cliente: ";
  22. cin>>cognome[i];
  23. }
  24. for(i=0;i<dimlav;i++)
  25. {
  26. cout<<"Nome cliente: ";
  27. cin>>nome[i];
  28. }
  29. for(i=0;i<dimlav;i++)
  30. {
  31. cout<<"Eta cliente: ";
  32. cin>>eta[i];
  33. }
  34. for(i=0;i<dimlav;i++)
  35.  
  36. {
  37. cout<<"Scegli il trattamento da effettuare:
  38. cout<<"1)Sauna (18euro)"<<endl;
  39. cout<<"2)Bagno turco (15euro)"<<endl;
  40. cout<<"3)Bagno di fieno (10euro)" <<endl;
  41. cout<<"4)Idromassaggio (12euro)" <<endl;
  42. cout<<"3)Stanza del sale (11euro)" <<endl;
  43. cout<<"4)Percorso kneipp (13euro)"<<endl; ";
  44. cin>>trattamento[i];
  45. }
  46. }
  47.  
  48.  
  49.  
  50.  
  51.  
  52. int main(int argc, char** argv) {
  53. return 0;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement