Advertisement
Guest User

Untitled

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