Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <vector>
- #include <iostream>
- class Rectangle
- {
- public:
- Rectangle(int width = 0, int height = 0)
- Rectangle(const Rectangle& rectangle);
- void SetWidth(const int width);
- int GetWidth() const;
- void SetHeight(const int width);
- int GetHeight() const;
- friend bool operator==(const Complex& first, const Rectangle& second);
- bool operator!=(const Rectangle& second) const;
- friend std::istream& operator>>(std::istream& stream, Rectangle& rectangle)
- friend std::ostream& operator<<(std::ostream& stream, const Rectangle& rectangle)
- private:
- int m_width;
- int m_height;
- };
- bool operator==(const Complex& first, const Rectangle& second)
- std::istream& operator>>(std::istream& stream, Rectangle& rectangle);
- std::ostream& operator<<(std::ostream& stream, const Rectangle& rectangle);
Add Comment
Please, Sign In to add comment