Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class PunktXY{
- public:
- int x;
- int y;
- PunktXY(int x, int y){
- this->x=x;
- this->y=y;
- }
- void wyswietl(){
- cout<<"wspolrzedna x wynosi: "<<x<<endl;
- cin>>x;
- cout<<"wspolrzedna y wynosi: "<<y<<endl;
- cin>>y;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement