Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- class prostokat
- {
- private:
- int x;
- int y;
- public:
- int A;
- int B;
- int prostokat()
- {
- cout<<"Podaj A:";
- cin>>A;
- cout<<"Podaj B:";
- cin>>B;
- }
- int GetX()
- {
- return=x
- }
- int GetY()
- {
- return=y
- }
- };
- int main(int argc, char** argv) {
- prostokat Pole->();
- {
- Pole=A*B;
- cout<<Pole;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement