PJF16

const - Point2D

Jan 14th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include "Point2D.h"
  2.  
  3. //const wurden von mir selbst gesetzt - richtig?
  4. CPoint2D::CPoint2D(const float mx, const float my)
  5. {
  6.     this->mx = mx;
  7.     this->my = my;
  8. }
  9.  
  10. ostream& operator<<(ostream& out, const CPoint2D& p)
  11. {
  12.     out << "MPoint=(" << p.mx << "|" << p.my << ")";
  13.     return out;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment