Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "sportowiec.h"
- using namespace std;
- int main()
- {
- Sportowiec S1;
- Sportowiec S2("Lewandowski","pilkarz",74);
- //kopia obiektu S2
- cout<<S2<<endl;
- Sportowiec S3=S2;
- cout<<S3<<endl;
- S3=S1;
- cout<<S1<<endl;
- //cout<<"Liczba obiektów<<Sportowiec::getIle();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement