Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  4.  
  5. class prostokat
  6. {
  7. private:
  8. int x;
  9. int y;
  10.  
  11. public:
  12. int A;
  13. int B;
  14. int prostokat()
  15. {
  16. cout<<"Podaj A:";
  17. cin>>A;
  18. cout<<"Podaj B:";
  19. cin>>B;
  20. }
  21.  
  22. int GetX()
  23. {
  24. return=x
  25. }
  26.  
  27. int GetY()
  28. {
  29. return=y
  30. }
  31.  
  32. };
  33.  
  34. int main(int argc, char** argv) {
  35.  
  36. prostokat Pole->();
  37. {
  38. Pole=A*B;
  39. cout<<Pole;
  40. }
  41.  
  42.  
  43.  
  44. return 0;
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement