Guest User

Untitled

a guest
Jan 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. class Sir
  6. {
  7. int lungime_sir;
  8. double arr[5];
  9. public:
  10. void citire( double arr[]);
  11. void afisare(double arr[]);
  12. };
  13.  
  14. void Sir::citire(double arr[])
  15. {
  16. cout << "5 valori:" << endl;
  17. for(int i=0; i<5; i++)
  18. cin >> arr[i];
  19. }
  20.  
  21. int main()
  22. {
  23. Sir s;
  24. double crr[5];
  25. s.citire(crr[5]);
  26. return 0;
  27. }
Add Comment
Please, Sign In to add comment