Advertisement
MARSHAL327

Untitled

Jan 10th, 2020
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. ostream& operator <<(ostream& out, const Coord& C) {
  2.     out << "x = " << C.x << endl;
  3.     out << "y = " << C.y << endl;
  4.     return out;
  5. };
  6.  
  7. istream& operator >>(istream& is, Coord& C)
  8. {
  9.     cout << "Введите x\n";
  10.     is >> C.x;
  11.     cout << "Введите y\n";
  12.     is >> C.y;
  13.     return is;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement