Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// http://www.cplusplus.com/forum/beginner/75558/
- #include "PointType.h"
- std::ostream & operator<<(std::ostream & os, PointType & cords)
- {
- os << "(x,y) format: (" << cords.x << "," << cords.y << ")\n";
- return os;
- }
- std::ostream & operator<<(std::ostream & os, Circle & crcl)
- {
- os << "Center: (" << crcl.getx() << "," << crcl.gety() << ")\n";
- os << "Radius: " << crcl.r << "\nArea: " << crcl.Area() <<
- "\nCircumference"
- return os;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement