Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ostream& operator <<(ostream& out, const Coord& C) {
- out << "x = " << C.x << endl;
- out << "y = " << C.y << endl;
- return out;
- };
- istream& operator >>(istream& is, Coord& C)
- {
- cout << "Введите x\n";
- is >> C.x;
- cout << "Введите y\n";
- is >> C.y;
- return is;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement