Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class Sir
- {
- int lungime_sir;
- double arr[5];
- public:
- void citire( double arr[]);
- void afisare(double arr[]);
- };
- void Sir::citire(double arr[])
- {
- cout << "5 valori:" << endl;
- for(int i=0; i<5; i++)
- cin >> arr[i];
- }
- int main()
- {
- Sir s;
- double crr[5];
- s.citire(crr[5]);
- return 0;
- }
Add Comment
Please, Sign In to add comment