Advertisement
stirante

point.h

Sep 14th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #ifndef POINT_H
  2. #define POINT_H
  3.  
  4. #include<iostream>
  5.  
  6. class Point
  7. {
  8.     const int x;
  9.     const int y;
  10. public:
  11.     Point(int, int);
  12.     friend std::ostream& operator<< (std::ostream& s, const Point& p);
  13.     friend Point& operator- (const Point& p1, const Point& p2);
  14. };
  15.  
  16. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement