Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. class PunktXY{
  6. public:
  7.  
  8. int x;
  9. int y;
  10.  
  11. PunktXY(int x, int y){
  12.  
  13. this->x=x;
  14. this->y=y;
  15.  
  16. }
  17.  
  18. void wyswietl(){
  19. cout<<"wspolrzedna x wynosi: "<<x<<endl;
  20. cin>>x;
  21. cout<<"wspolrzedna y wynosi: "<<y<<endl;
  22. cin>>y;
  23. }
  24.  
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement